http://xiangai.taobao.com
http://shop148612228.taobao.com

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

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

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

 

以上,仅记录。

posted @   万事俱备就差个程序员  阅读(1198)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
历史上的今天:
2020-03-01 conflicts with existing, non-compatible bean definition of same name and cla
2017-03-01 HTTPS为什么更安全,先看这些 , 网络加密 , 加密解密
2015-03-01 sql server ,OVER(PARTITION BY)函数用法,开窗函数,over子句,over开窗函数
2015-03-01 SQLServer : EXEC和sp_executesql的区别
2015-03-01 SET ROWCOUNT,SET NOCOUNT
2012-03-01 jQuery AJAX实现调用页面后台方法和web服务定义的方法
2012-03-01 sql server join

http://xiangai.taobao.com
http://shop148612228.taobao.com
如果您觉得对您有帮助.领个红包吧.谢谢.
支付宝红包
微信打赏 支付宝打赏
点击右上角即可分享
微信分享提示