Преглед на файлове

aps-打开定时任务配置

sucheng преди 7 месеца
родител
ревизия
93e9ada714
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      cx-aps/cx-aps-server/src/main/java/com/rongwei/ApsBusinessServerApplication.java

+ 2 - 0
cx-aps/cx-aps-server/src/main/java/com/rongwei/ApsBusinessServerApplication.java

@@ -6,12 +6,14 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.annotation.EnableScheduling;
 
 @EnableAsync
 @SpringBootApplication
 @EnableDiscoveryClient
 @EnableFeignClients
 @MapperScan({"com.rongwei.*.*.dao", "com.rongwei.*.*.*.dao"})
+@EnableScheduling
 public class ApsBusinessServerApplication {
 
     public static void main(String[] args) {