Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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.
解决方法:
在mysql的url后面加上serverTimezone参数。
本文详细介绍了如何解决在使用MySQL数据库时遇到的时区配置问题。当出现因时区设置不正确导致的InvalidConnectionAttributeException异常时,可以通过在数据库连接URL中添加serverTimezone参数来指定正确的时区,从而避免此问题。
4913

被折叠的 条评论
为什么被折叠?



