ソースを参照

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

lagelanren 5 年 前
コミット
a54ba21386
1 ファイル変更1 行追加1 行削除
  1. 1 1
      litemall-db/src/main/resources/application-db.yml

+ 1 - 1
litemall-db/src/main/resources/application-db.yml

@@ -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