springboot jpa设置InnoDB引擎,mysql,与设置自定义列名
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect #不加这句则默认为myisam引擎
properties.hibernate.hbm2ddl.auto: update
database: mysql
hibernate:
#设置自定义列名
naming:
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
show-sql: false
还没有评论,来说两句吧...