有可能是mysql的版本太低,pom.xml的mysql的依赖改为高版本的。
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.15</version> <scope>runtime</scope> </dependency>
也有可能是time_zone未设置,url加上
serverTimezone=UTC
有可能是mysql的版本太低,pom.xml的mysql的依赖改为高版本的。
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.15</version> <scope>runtime</scope> </dependency>
也有可能是time_zone未设置,url加上
serverTimezone=UTC