yangzian 3 лет назад
Родитель
Сommit
f43ff2063a

+ 3 - 0
jeecg-boot-finance/src/main/resources/application-dev.yml

@@ -109,6 +109,9 @@ spring:
           url: jdbc:mysql://139.186.165.84:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
           username: hcst
           password: hcst@2020
+          #url: jdbc:mysql://139.186.27.96:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          #username: data
+          #password: hcst@2021
           driver-class-name: com.mysql.jdbc.Driver
           # 多数据源配置
         multi-datasource1:

+ 5 - 0
jeecg-boot-finance/src/main/resources/application-prod.yml

@@ -110,6 +110,11 @@ spring:
           username: data
           password: hcst@2021
           driver-class-name: com.mysql.jdbc.Driver
+        multi-datasource1:
+          url: jdbc:mysql://111.206.86.186:3390/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&allowMultiQueries=true&serverTimezone=GMT%2B8
+          username: hcst
+          password: hcst@2021
+          driver-class-name: com.mysql.jdbc.Driver
   #redis 配置
   redis:
     database: 0

+ 6 - 0
jeecg-boot-finance/src/main/resources/application-test.yml

@@ -105,6 +105,12 @@ spring:
           username: hcst
           password: hcst@2020
           driver-class-name: com.mysql.jdbc.Driver
+            # 多数据源配置
+        multi-datasource1:
+          url: jdbc:mysql://192.168.0.184:3390/jeecg-boot?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+          username: hcst
+          password: hcst@2021
+          driver-class-name: com.mysql.cj.jdbc.Driver
   #redis 配置
   redis:
     database: 0