OauthServer.java 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.dk.oauth;
  2. import org.mybatis.spring.annotation.MapperScan;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  6. import org.springframework.cloud.context.config.annotation.RefreshScope;
  7. import org.springframework.cloud.openfeign.EnableFeignClients;
  8. import org.springframework.context.annotation.ComponentScan;
  9. import org.springframework.scheduling.annotation.EnableScheduling;
  10. import springfox.documentation.swagger2.annotations.EnableSwagger2;
  11. /**
  12. * @Author: dapeng
  13. * @Description: 启动类
  14. * @Date: create in 2022/6/28 15:58
  15. */
  16. @RefreshScope
  17. @EnableSwagger2
  18. @EnableDiscoveryClient
  19. @MapperScan(basePackages = {"com.dk.oauth.mapper","com.dk.common.mapper.opinfo"})
  20. @EnableFeignClients
  21. @SpringBootApplication
  22. @ComponentScan(basePackages = {"com.dk.common","com.dk.oauth"})
  23. @EnableScheduling //开启定时任务
  24. public class OauthServer {
  25. public static void main(String[] args) {
  26. SpringApplication.run(OauthServer.class, args);
  27. }
  28. }