Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set。

2021-08-15最新的spring boot,JPA+mysql,出现这个错误:Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set。百度了好一会,发现好多人说要在application.properties里加入以下这句:spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect 结果就是我加了这行也没用,还是报同样的错。后面切换到bing搜了一下英文站,去了stackoverflow:java - Spring Boot JPA - Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set - Stack Overflow分分钟解决战斗:

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set。

虽然我这里想使用的是mysql,不是PostgreSQL,那就换成mysql的嘛:

spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect

对于百度搜出来的东西,再次持怀疑态度。

以上,仅记录。

Original: https://www.cnblogs.com/suizhikuo/p/15949307.html
Author: 勤学如春起之苗
Title: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set。

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/545560/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球