码迷,mamicode.com
首页 > 数据库 > 详细

java.sql.SQLException: The server time zone value ‘?й???????’ is unrecognized or represents more than one time zone.

时间:2019-12-14 13:40:00      阅读:85      评论:0      收藏:0      [点我收藏+]

标签:time   config   class   mamicode   数据   jdb   ant   cte   java   

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.

SpringBoot在连接数据库的时候会出现这种情况,大家不必惊慌,只需修改一下代码就行。
解决方法:
在URL上加上:?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8

技术图片

java.sql.SQLException: The server time zone value ‘?й???????’ is unrecognized or represents more than one time zone.

标签:time   config   class   mamicode   数据   jdb   ant   cte   java   

原文地址:https://www.cnblogs.com/bestjdg/p/12038599.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!