spring boot java.sql.SQLException: The server time zone value '乱码' is unrecognized or represents more than one time zone

在springboot项目中,由于使用了高版本的mysql驱动(6.0+以后)就会出现需要设置时区的问题
jdbc.url改一下就行了,中国为东八区
spring.datasource.url=jdbc:mysql://localhost:33066/test?useUnicode=true&characterEncodeing=UTF-8&useSSL=false&serverTimezone=GMT%2B8
 
原文地址:https://www.cnblogs.com/signheart/p/14447698.html