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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM