M U*_*M U 3 spring hibernate spring-boot
这是我的配置:
spring.jpa:
hibernate:
ddl-auto: update
connection:
charset: utf8
useUnicode: true
properties.hibernate.dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Run Code Online (Sandbox Code Playgroud)
根据我在文档中发现的内容,因此它应该可以工作,但仍然使用 MyISAM 而不是 InnoDB 创建新表。
我的配置有什么问题?
设置方言的属性其实是 spring.jpa.properties.hibernate.dialect
尝试这个:
spring.jpa:
hibernate:
connection:
charset: utf8
useUnicode: true
ddl-auto: update
properties.hibernate.dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9855 次 |
| 最近记录: |