1. 程式人生 > >SpringBoot | 遇坑總結 | JPA

SpringBoot | 遇坑總結 | JPA

null 文件中 ces pla exceptio cannot style pan jdbc

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