Spring项目启动时 报错误java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more tha
![](https://i-blog.csdnimg.cn/blog_migrate/86d620db941d83761aec39086f231d05.png)
原因可能是用的Mysql版本太新有时区问题导致
解决办法:
在连接地址后面加上时区
?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
添加后 可以正常启动了
![](https://i-blog.csdnimg.cn/blog_migrate/824ab1fe05bb9688288884fff6fae6dc.png)
Spring项目启动时 报错误java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more tha
原因可能是用的Mysql版本太新有时区问题导致
解决办法:
在连接地址后面加上时区
?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
添加后 可以正常启动了