项目启动报错The server time zone value '�й���׼ʱ��' is unrecognize

在使用一个第三方的任务调度平台时,报错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/test
    而是要写成 :
    jdbc:mysql://localhost:3306/test?serverTimezone=UTC
posted @ 2020-05-15 10:07  大盘鸡嘹咋咧  阅读(1014)  评论(1编辑  收藏  举报