第一次用springboot整合mybatisplus时出现的错误:
java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized
SpringBoot在连接数据库的时候会出现这种情况,大家不必惊慌,只需修改一下代码就行

如:没修改前:
java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized

修改之后:
java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized

在URL上加上:?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8

相关文章: