|
|
@@ -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) {
|