Spring data jpa命名策略
- application.properties 写法
无修改命名
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
遇到大写字母 加”_”的命名
spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
- application.yml 写法
无修改命名
spring:
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
遇到大写字母 加”_”的命名
spring:
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.SpringPhysicalNamingStrategy