java.sql.SQLException

java.sql.SQLException: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property) to use a more specifc time zone value if you want to utilize time zone support.

 

操作系统: Windows 10

Spring boot 版本: 2.3.1.RELEASE

MySQL 版本: 8.0.20

修改项目中 jdbc 驱动URL参数后添加 ?useSSL=false&serverTimezone=Asia/Shanghai

如下: spring.datasource.url=jdbc:mysql://localhost:3306/joytech1?useSSL=false&serverTimezone=Asia/Shanghai

重新启动项目即可

java.sql.SQLException

上一篇:K002004-0x02MySQL权限管理


下一篇:mysql 8.0.20下载与安装