Springboot2.0中Hibernate默认建立的mysql表为myisam引擎问题

升级到Springboot2.0后,依然是使用jpa、Hibernate来操做mysql,发现Hibernate默认建立的表是myisam引擎,而不是innodb。添加下面的方言便可修改成innodbhtml spring: jpa: database: mysql show-sql: true hibernate: ddl-auto: update
相关文章
相关标签/搜索