2021-06-09——Mysql 8 驱动时区的配置serverTimezone=GMT%2B8

# mysql 5 驱动不同  com.mysql.jdbc.Driver# mysql 8 驱动不同 com.mysql.cj.jdbc.Driver . 需要增加时区的配置serverTimezone=GMT%2B8 
spring:
  datasource:
    password: 970929
    url: jdbc:mysql//localhost:3306/mybatis_plus?useSSL=false&useUnicode=true&cahracterEncoding=utf-8&serverTimezone=GMT%2B8
    driver-class-name: com.mysql.jdbc.Driver
    username: root


你可能感兴趣的:(數據庫,sql)