欧阳劲驰 1 месяц назад
Родитель
Сommit
84fb7bcd9f

+ 6 - 0
custom-gateway-app/src/main/resources/application-zhscada.yml

@@ -4,6 +4,12 @@ spring:
   datasource:
     #多数据源
     multi:
+      #主要
+      primary:
+        url: jdbc:postgresql://140.246.183.164:5432/water_smart_develop_branch?useSSL=false&useAffectedRows=false&allowMultiQueries=true&useUnicode=true&characterEncoding=utf-8
+        username: postgres
+        password: kpr.23417.postgres
+        driver-class-name: org.postgresql.Driver
       #scada
       scada:
         url: jdbc:oracle:thin:@//140.246.183.164:1521/FREEPDB1

+ 10 - 0
custom-gateway-app/src/main/resources/application-zydma.yml

@@ -1,5 +1,15 @@
 #spring
 spring:
+  #数据源
+  datasource:
+    #多数据源
+    multi:
+      #主要
+      primary:
+        url: jdbc:postgresql://223.75.194.87:6057/watersmart?useSSL=false&useAffectedRows=false&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
+        username: postgres
+        password: kpr.23417.postgres
+        driver-class-name: org.postgresql.Driver
   #influx
   influx:
     read-timeout: 30000

+ 0 - 6
custom-gateway-app/src/main/resources/application.yml

@@ -53,12 +53,6 @@ spring:
       initialization-fail-timeout: -1
     #多数据源
     multi:
-      #主要
-      primary:
-        url: jdbc:postgresql://223.75.194.87:6057/watersmart?useSSL=false&useAffectedRows=false&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
-        username: postgres
-        password: kpr.23417.postgres
-        driver-class-name: org.postgresql.Driver
       #嵌入式
       embedded:
         url: jdbc:h2:file:./data