java开发过程中常见问题及解决方案
2019-04-11 本文已影响1人
编程小石头666
一,数据库相关
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
