irpas技术客

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

大大的周 5016

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

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

以上,仅记录。


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #Access #To #Cannot #be #null #when