serverTimezone=UTC 导致数据库取出来时间早8个小时 (#420)

This commit is contained in:
lagelanren
2020-07-28 21:53:41 +08:00
committed by GitHub
parent 8353ed1054
commit a54ba21386

View File

@@ -7,7 +7,7 @@ pagehelper:
spring:
datasource:
druid:
url: jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url: jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.cj.jdbc.Driver
username: litemall
password: litemall123456