知乎专栏 |
目录
正常创建表会使用数据库默认引擎,有时数据库默认引擎并不是我们需要的,通过下面配置可以指定表引擎
# Spring boot 1.x.x spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect # Spring boot 2.0.2 spring.jpa.hibernate.use-new-id-generator-mappings=true spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect