错题集

springboot整合mybatis出现了异常:com.mys

2020-03-27  本文已影响0人  NisyCoding
异常如下:

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.

1585284839(1).png
问题描述:

mysql识别时区出现了问题,我们没有指定时区.

问题解决:

需要在配置DB中url后面加上“&serverTimezone=UTC”.

上一篇 下一篇

猜你喜欢

热点阅读