java连接数据库报错:Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '

1.解决方法

报错信息:

 

Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '

 

  

此问题为时区问题,在 JDBC 的连接 url 部分加上 serverTimezone=UTC 即可。 

 

posted @ 2019-05-26 19:56  鸿森  阅读(310)  评论(0编辑  收藏  举报