springboot jpa设置InnoDB引擎,mysql,与设置自定义列名

青旅半醒 2021-09-25 12:56 289阅读 0赞
  1. jpa:
  2. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect #不加这句则默认为myisam引擎
  3. properties.hibernate.hbm2ddl.auto: update
  4. database: mysql
  5. hibernate:
  6. #设置自定义列名
  7. naming:
  8. implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl
  9. physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  10. show-sql: false

发表评论

表情:
评论列表 (有 0 条评论,289人围观)

还没有评论,来说两句吧...

相关阅读