数据库时区报错,Mysql数据库更换8.0.20版本
pom文件 <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.20</version> </dependency>
java文件 public static String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver";
去数据库里改一下时区
set global time_zone='+8:00';