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