Просмотр исходного кода

Merge branch 'master' of http://git.dongkesoft.com:9001/iBOSS-2.0-Mini/iboss-server-oauth

zhoux 1 год назад
Родитель
Сommit
a57d313ba5
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/main/java/com/dk/oauth/OauthServer.java

+ 2 - 0
src/main/java/com/dk/oauth/OauthServer.java

@@ -7,6 +7,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.context.annotation.ComponentScan;
+import org.springframework.scheduling.annotation.EnableScheduling;
 import springfox.documentation.swagger2.annotations.EnableSwagger2;
 
 /**
@@ -21,6 +22,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
 @EnableFeignClients
 @SpringBootApplication
 @ComponentScan(basePackages = {"com.dk.common","com.dk.oauth"})
+@EnableScheduling //开启定时任务
 public class OauthServer {
 
     public static void main(String[] args) {