Browse Source

实现适配器多数据源

shilin 1 year ago
parent
commit
0fe142fa6a

+ 11 - 2
realtime/failurestatistics-server-cph/pom.xml

@@ -18,7 +18,7 @@
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
         <maven.test.skip>true</maven.test.skip>
-
+        <pgsql.version>42.2.5</pgsql.version>
         <groovy.version>3.0.8</groovy.version>
         <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
 
@@ -118,7 +118,11 @@
 
         </dependency>
 
-
+        <dependency>
+            <groupId>org.postgresql</groupId>
+            <artifactId>postgresql</artifactId>
+            <version>${pgsql.version}</version>
+        </dependency>
         <!-- ********************** plugin ********************** -->
         <!-- groovy-all -->
         <dependency>
@@ -141,6 +145,11 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <version>2.3.7.RELEASE</version>
+                <configuration>
+                    <!--maven编译时将本地引用的jar包一起打包-->
+                    <includeSystemScope>true</includeSystemScope>
+                </configuration>
                 <executions>
                     <execution>
                         <goals>

+ 1 - 1
realtime/failurestatistics-server-cph/src/main/resources/application.yml

@@ -1,4 +1,4 @@
 spring:
   profiles:
-    active: hb
+    active: jn
 #    active: jn

+ 3 - 3
realtime/failurestatistics-server-cph/src/main/resources/xxl-job-executor.properties

@@ -1,7 +1,7 @@
 ### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
 #xxl.job.admin.addresses=http://192.168.2.198:8175/xxl-job-admin
-xxl.job.admin.addresses=http://10.0.118.76:8175/xxl-job-admin
-
+#xxl.job.admin.addresses=http://10.0.118.76:8175/xxl-job-admin
+xxl.job.admin.addresses=http://10.81.3.152:8175/xxl-job-admin
 
 ### xxl-job, access token
 xxl.job.accessToken=
@@ -12,7 +12,7 @@ xxl.job.executor.appname=failurestatistics-job
 xxl.job.executor.address=
 ### xxl-job executor server-info
 xxl.job.executor.ip=
-xxl.job.executor.port=9102
+xxl.job.executor.port=9112
 ### xxl-job executor log-path
 xxl.job.executor.logpath=d:\\jobs\\failurestatistics-job
 ### xxl-job executor log-retention-days