首页 > 编程语言 > 详细

SpringBoot | 遇坑总结 | JPA

时间:2018-10-27 15:50:29      阅读:586      评论:0      收藏:0      [点我收藏+]

1. 

  Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect‘ not set

  在配置文件中添加:

spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect

 

2.

  Caused by: java.sql.SQLException: No timezone mapping entry for ‘GMT+‘

  修改数据库URL的参数值: serverTimezone=GMT%2B --> serverTimezone=UTC

jdbc:mysql://localhost:3306/shopping?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC

 

   

 

 

来源:

1. https://blog.csdn.net/BeauXie/article/details/75948457

2. https://stackoverflow.com/questions/26515700/mysql-jdbc-driver-5-1-33-time-zone-issue

SpringBoot | 遇坑总结 | JPA

原文:https://www.cnblogs.com/jj81/p/9861320.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!