异常如下:
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.
![](https://img.haomeiwen.com/i21824535/c7ec31fb0c7fa316.png)
问题描述:
mysql识别时区出现了问题,我们没有指定时区.
问题解决:
需要在配置DB中url后面加上“&serverTimezone=UTC”.
网友评论