1.错误
在做maven +springboot + mybatis 项目 连接数据库报错
Caused by: 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.
2.解决
修改配置文件 application.properties
### mysql数据库连接信息
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springboot?serverTimezone=Asia/Shanghai
加上了 ?serverTimezone=Asia/Shanghai
原因时区报错