spring.jpa.show-sql = true
logging.level.org.springframework.data=DEBUG
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.hibernate.namingstrategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MYSQL5Dialect
您的配置有错字
正确的应该是
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
在最新版本的 Java 中,它删除了
MySQL5Dialect or MySQL8Dialect
而不是使用论文,
尝试使用这个
spring.jpa.properties.hibernate.dialect=org.hibernate.cj.dialect.MySQLDialect