java开发过程中常见问题及解决方案

作者: 编程小石头666 | 来源:发表于2019-04-11 18:53 被阅读1次

一,数据库相关

1,Caused by: 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.

解决:通过最后一句我们知道,JDBC 8以上的版本必须配置时区
所以要在连接MySQL服务器地址的位置跟上?serverTimeZone=UTC


image.png

相关文章

网友评论

    本文标题:java开发过程中常见问题及解决方案

    本文链接:https://www.haomeiwen.com/subject/kapxwqtx.html