Browse Source

local测试配置

zhaoxian 2 years ago
parent
commit
61303b947f

+ 15 - 15
jeecg-cloud-module/jeecg-cloud-system-start/src/main/resources/application-dev.yml

@@ -50,8 +50,8 @@ spring:
   ## quartz定时任务,采用数据库方式
   #json 时间戳统一转换
   jackson:
-    date-format:   yyyy-MM-dd HH:mm:ss
-    time-zone:   GMT+8
+    date-format: yyyy-MM-dd HH:mm:ss
+    time-zone: GMT+8
   aop:
     proxy-target-class: true
   #配置freemarker
@@ -81,10 +81,10 @@ spring:
     #    username: readonly
     #    password: hcst@2021
     #---------------------测试库
-    url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
-    username: hcst
-    password: hcst@2020
-    driver-class-name: com.mysql.jdbc.Driver
+    #    url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
+    #    username: hcst
+    #    password: hcst@2020
+    #    driver-class-name: com.mysql.jdbc.Driver
     druid:
       stat-view-servlet:
         loginUsername: admin
@@ -121,15 +121,15 @@ spring:
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
       datasource:
         master:
-#---------------------线上库
-          url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
-          username: data
-          password: hcst@2021
-#---------------------测试库
-#          url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true
-#          username: hcst
-#          password: hcst@2020
-#          driver-class-name: com.mysql.jdbc.Driver
+          #---------------------线上库
+          #          url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
+          #          username: data
+          #          password: hcst@2021
+          #---------------------测试库
+          url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai
+          username: hcst
+          password: hcst@2020
+          driver-class-name: com.mysql.jdbc.Driver
   #redis 配置
   redis:
     database: 0