The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more than one time zone...

报错信息

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 specific time zone value if you want

解决方式

找到配置文件 application.propertice 或者 application.yml 文件的 url :

数据库名? 后面拼接 serverTimezone=UTC ,拼接后要加上 ,复制如下:

serverTimezone=UTC&

完。。。

猜你喜欢

转载自blog.csdn.net/weixin_62332711/article/details/126862708