spring boot 自己遇到的错误或bug(随时更新)

这篇随笔仅仅用于提醒和以后遇到相同问题解决不了所做的笔记
ps:这个解决方法来自 https://blog.csdn.net/baidu_39298625/article/details/100915264
1.链接MySQL数据库报错: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.

解决方法: 在连接数据库的配置文件中,在URL后加上 ?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

posted @ 2020-09-04 17:45  Uranus丶pices  阅读(89)  评论(0编辑  收藏  举报