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