qin 1 سال پیش
والد
کامیت
f7977d9eed

+ 3 - 4
src/main/java/com/poteviohealth/cgp/statistics/CgpStatisticsApplication.java

@@ -2,11 +2,10 @@ package com.poteviohealth.cgp.statistics;
 
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.context.annotation.ComponentScan;
+import org.springframework.scheduling.annotation.EnableAsync;
 
 /**
  * @author david
@@ -15,8 +14,8 @@ import org.springframework.context.annotation.ComponentScan;
 @EnableDiscoveryClient
 @EnableFeignClients(basePackages = {"com.poteviohealth.cgp.common.integrated.partner","com.poteviohealth.cgp.common.integrated.finance",
 		"com.poteviohealth.cgp.common.integrated.order","com.poteviohealth.cgp.common.integrated.customer"})
-@EnableConfigurationProperties
-@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
+@EnableAsync
+@SpringBootApplication
 @ComponentScan(value = {"com.poteviohealth.cgp"})
 public class CgpStatisticsApplication {
 

+ 11 - 12
src/main/resources/rizhao/application.yml

@@ -21,18 +21,17 @@ spring:
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     druid:
-      database:
-        jdbc-url: jdbc:mysql://127.0.0.1:3306/yl_face?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
-        username: szyl
-        password: M7puu$Cn
-        filter: stat
-        max-active: 100
-        initial-size: 5
-        max-wait: 60000
-        min-idle: 1
-        validation-query: SELECT 1
-        test-while-idle: true
-        driver-class-name: com.mysql.cj.jdbc.Driver
+      url: jdbc:mysql://127.0.0.1:3306/yl_face?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
+      username: szyl
+      password: M7puu$Cn
+      filter: stat
+      max-active: 100
+      initial-size: 5
+      max-wait: 60000
+      min-idle: 1
+      validation-query: SELECT 1
+      test-while-idle: true
+      driver-class-name: com.mysql.cj.jdbc.Driver
   data:
     elasticsearch:
       cluster-name: my-application

+ 11 - 13
src/main/resources/uat/application.yml

@@ -21,18 +21,17 @@ spring:
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     druid:
-      database:
-        jdbc-url: jdbc:mysql://172.17.17.50:3306/rz_face?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
-        username: szyl
-        password: sz0308
-        filter: stat
-        max-active: 100
-        initial-size: 5
-        max-wait: 60000
-        min-idle: 1
-        validation-query: SELECT 1
-        test-while-idle: true
-        driver-class-name: com.mysql.cj.jdbc.Driver
+      url: jdbc:mysql://172.17.17.50:3306/rz_face?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
+      username: szyl
+      password: sz0308
+      filter: stat
+      max-active: 100
+      initial-size: 5
+      max-wait: 60000
+      min-idle: 1
+      validation-query: SELECT 1
+      test-while-idle: true
+      driver-class-name: com.mysql.cj.jdbc.Driver
   data:
     elasticsearch:
       cluster-name: my-application
@@ -59,7 +58,6 @@ spring:
     timeout: 5000
 #mybatis plus配置
 mybatis-plus:
-
   config-location: classpath:mybatis-config.xml
   mapper-locations: classpath:/mapper/statistics/*.xml
 

+ 11 - 12
src/main/resources/zky/application.yml

@@ -24,18 +24,17 @@ spring:
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
     druid:
-      database:
-        jdbc-url: jdbc:mysql://10.6.17.128:3306/rz_face?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
-        username: zky
-        password: V&h5IN!&
-        filter: stat
-        max-active: 100
-        initial-size: 5
-        max-wait: 60000
-        min-idle: 1
-        validation-query: SELECT 1
-        test-while-idle: true
-        driver-class-name: com.mysql.cj.jdbc.Driver
+      url: jdbc:mysql://10.6.17.128:3306/rz_face?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
+      username: zky
+      password: V&h5IN!&
+      filter: stat
+      max-active: 100
+      initial-size: 5
+      max-wait: 60000
+      min-idle: 1
+      validation-query: SELECT 1
+      test-while-idle: true
+      driver-class-name: com.mysql.cj.jdbc.Driver
   data:
     elasticsearch:
       cluster-name: my-application