|
@@ -5,6 +5,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
+import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
/**
|
|
|
* 项目的启动类
|
|
@@ -12,6 +13,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
*
|
|
|
* @author nelson
|
|
|
*/
|
|
|
+@EnableScheduling
|
|
|
@EnableDiscoveryClient
|
|
|
@Slf4j
|
|
|
@SpringBootApplication
|