SpringBoot | 遇坑总结 | JPA

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

posted @ 2018-10-27 15:12  听说这是最长的名字了  阅读(5111)  评论(0编辑  收藏  举报