eova1.6 运行在eclipse 2022

elipse导入项目后

修改pom.xml  jdk.version 改为1.8

增加(因为内置的依赖太旧)

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.15</version>
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.23</version>
</dependency>

数据库连接增加?serverTimezone=UTC   增加后如下,必须放在?后面第一个

main.url = jdbc:mysql://127.0.0.1:3306/demo?serverTimezone=UTC&useSSL=false&