1.更新mysql-connector-java版本:
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
2.更换驱动:
jdbc.user=root
jdbc.password=root
jdbc.url=jdbc:mysql://129.0.0.1:3306/project_crowd?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8
jdbc.driver=com.mysql.cj.jdbc.Driver
3.设置时区
上面的链接中已经给出了,添加一个字段
serverTimezone=UTC
参考:https://blog.csdn.net/qq_22076345/article/details/81952035