首页 > 数据库技术 > 详细

java.sql.SQLException

时间:2020-06-26 16:51:51      阅读:82      评论:0      收藏:0      [点我收藏+]

java.sql.SQLException: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property) to use a more specifc time zone value if you want to utilize time zone support.

 

操作系统: Windows 10

Spring boot 版本: 2.3.1.RELEASE

MySQL 版本: 8.0.20

修改项目中 jdbc 驱动URL参数后添加 ?useSSL=false&serverTimezone=Asia/Shanghai

如下: spring.datasource.url=jdbc:mysql://localhost:3306/joytech1?useSSL=false&serverTimezone=Asia/Shanghai

重新启动项目即可

java.sql.SQLException

原文:https://www.cnblogs.com/30rl/p/13195375.html

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