当前位置: 代码迷 >> 综合 >> Springboot2.0.4.RELEASE使用JPA自动建表报错Error executing DDL via JDBC Statement
  详细解决方案

Springboot2.0.4.RELEASE使用JPA自动建表报错Error executing DDL via JDBC Statement

热度:58   发布时间:2023-12-22 16:05:24.0

在application.yml这样设置

spring:jpa:show-sql: truehibernate:ddl-auto: updatedatabase-platform: org.hibernate.dialect.MySQL5InnoDBDialect

报错是因为我没有加上 database-platform: org.hibernate.dialect.MySQL5InnoDBDialect这个没有设置

  相关解决方案