Procházet zdrojové kódy

船闸数据接收

zoro před 1 rokem
rodič
revize
b3255c8a61

+ 1 - 1
src/main/java/com/shcd/conf/XxlJobConfig.java

@@ -39,7 +39,7 @@ public class XxlJobConfig {
     private int logRetentionDays;
 
 
-    @Bean(initMethod = "start", destroyMethod = "destroy")
+    @Bean
     public XxlJobSpringExecutor xxlJobExecutor() {
         log.info(">>>>>>>>>>> xxl-job config init."+adminAddresses);
         XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();

+ 3 - 3
src/main/resources/profile/test/application.properties

@@ -1,9 +1,9 @@
 server.port=9097
 
 #数据库连接配置
-#spring.datasource.url=jdbc:oracle:thin:@//172.17.190.5/orcl
+spring.datasource.url=jdbc:oracle:thin:@//172.17.190.5/orcl
 #spring.datasource.url=jdbc:oracle:thin:@//198.39.1.218/shhwdb
-spring.datasource.url=jdbc:oracle:thin:@//10.114.4.56/shhwdb
+#spring.datasource.url=jdbc:oracle:thin:@//10.114.4.56/shhwdb
 spring.datasource.username=ghjg_basics
 spring.datasource.password=GHJG@123
 #空间坐标系参数 生产库
@@ -35,7 +35,7 @@ spring.jmx.enabled=false
 
 
 xxl.job.admin.addresses=http://172.17.159.2:8091/xxl-job-admin
-xxl.job.executor.appname=DredgingImport
+xxl.job.executor.appname=ShipLock
 xxl.job.executor.ip=172.17.159.2
 xxl.job.executor.port=9994
 xxl.job.accessToken=