admin管理员组文章数量:1794759
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对于百度搜出来的东西,再次持怀疑态度。
以上,仅记录。
本文标签: nullDialectResolutionInfoAccesssetdialect
版权声明:本文标题:Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect‘ not set。 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686962007a122712.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论