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

spring boot启动的时候,报了这个错误

发现很多都是让我们添加方言

例如:

database-platform: org.hibernate.dialect.OracleDialect

然而我发现问题根本不是这个

我在连接数据的url处添加了时区设置就不报错了

jdbc:mysql://localhost:3306/test?serverTimezone=UTC

 

posted @ 2020-05-23 23:22  ABKing  阅读(5135)  评论(1编辑  收藏  举报