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

编程知识 更新时间:2023-04-06 10:30:52

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
分分钟解决战斗:

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

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

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

以上,仅记录。

更多推荐

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

本文发布于:2023-04-06 10:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/e25c1c2f1ca7a594d2e1f066ec5b0396.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:null   DialectResolutionInfo   Access   set   dialect

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 49064文章数
  • 14阅读数
  • 0评论数