MySQL连接时报错:The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone.
最近在用Spring Boot整合mybatis,用mysql数据库,写一个小demo时遇到的错误,在application.xml文件中 spring.datasource.url中加一个?serverTimezone=UTC即可解决
spring.datasource.url= jdbc:mysql://localhost:3306/houses?serverTimezone=UTC&characterEncoding=UTF-8