mybatis中mysql的时区错误问题: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one
// 数据库配置
mybatis.type-aliases-package=com.item.springbootmybatisdemo.entity
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/man?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT
spring.datasource.username = root
spring.datasource.password = root
在spring.datasource.url = jdbc:mysql://localhost:3306/man?useUnicode=true&characterEncoding=utf-8
最后面加
&serverTimezone=GMT
就可以了