server time zone value错误

Cause: 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.

弄ibatis的时候报了个错,主要报错是上面的样子。
猜测是时区问题server time zone value,毕竟直接提示了。
然后百度–》csdn,找到了解决方法 ?serverTimezone=UTC
在这里插入图片描述
问题解决。

ps:mysql的驱动问题在8点几的版本后需要将驱动写为com.mysql.cj.jdbc.Driver

发布了19 篇原创文章 · 获赞 15 · 访问量 1075

猜你喜欢

转载自blog.csdn.net/qq_30396379/article/details/102796873