首页 > 数据库> > java.sql.SQLException: The server time zone value xx is unrecognized or represents more than one ti
java.sql.SQLException: The server time zone value xx is unrecognized or represents more than one ti
作者:互联网
这个报错是由于连接数据版本问题,在连接数据库库的url加上:
?serverTimezone=UTC
如下:
spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/test?serverTimezone=UTC username: root password: 1234
标签:represents,jdbc,zone,UTC,url,serverTimezone,time,mysql 来源: https://www.cnblogs.com/shadowlovesunshine/p/15568480.html