8.0版本有两个改动
1、jdbc的驱动必须设置为com.mysql.cj.jdbc.Driver
2、指定时区serverTimezone=GMT%2B8
jdbc.driver=com.mysql.cj.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8jdbc.username=rootjdbc.password=root
对应的驱动jar包也要改为8.0版本
<dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>8.0.11</version><scope>runtime</scope></dependency>