hongxudong 2 lat temu
rodzic
commit
988b7702f0
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/main/java/com/dk/report/ReportServer.java

+ 2 - 0
src/main/java/com/dk/report/ReportServer.java

@@ -12,6 +12,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.ComponentScan;
 import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
+import org.springframework.scheduling.annotation.EnableAsync;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -23,6 +24,7 @@ import java.time.format.DateTimeFormatter;
  * @date   : 2022-3-1 9:48
  * @desc   : springboot应用主启动类
  */
+@EnableAsync
 @EnableFeignClients
 @RestController
 @SpringBootApplication