首页 > 其他 > 详细

Mybatis项目启动时报错:The server time zone value '?й???????' is unrecognize

时间:2020-05-16 23:14:40      阅读:80      评论:0      收藏:0      [点我收藏+]
在使用idea启动mybatis项目时,报错The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. You must...
   
原因是使用了Mysql Connector/J 6.x以上的版本,然后就报了时区的错误,解决方法:
    在配置url的时候不能简单写成 :
    jdbc:mysql://localhost:3306/mybatis
    而是要写成 :
    jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC

Mybatis项目启动时报错:The server time zone value '?й???????' is unrecognize

原文:https://www.cnblogs.com/liqinzhen/p/12902542.html

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