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

  

上一篇:DirectInput 键盘编程入门


下一篇:Java IO 学习(四)BIO/NIO