【发布时间】:2019-11-29 06:49:09
【问题描述】:
我试图将表创建为 innodb 以使用外键,但我失败了,我的表仍保留为 myIssam 引擎!
我的mysql版本是5.7.26 这是我的 application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/general_security?useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username=basil
spring.datasource.password=root
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.use_sql_comments=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.type=debug
spring.jpa.hibernate.ddl-auto=create
hibernate.dialect.storage_engine=innodb
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.datasource.hikari.maximum-pool-size=50
server.servlet.context-path=/generalSecurity
spring.jmx.default-domain: general_security
我也试过了
spring.jpa.database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
【问题讨论】:
标签: java mysql spring-boot jpa