package com.dk.oauth; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; 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; /** * @Author: dapeng * @Description: 启动类 * @Date: create in 2022/6/28 15:58 */ @RefreshScope @EnableSwagger2 @EnableDiscoveryClient @MapperScan(basePackages = {"com.dk.oauth.mapper","com.dk.common.mapper.opinfo"}) @EnableFeignClients @SpringBootApplication @ComponentScan(basePackages = {"com.dk.common","com.dk.oauth"}) @EnableScheduling //开启定时任务 public class OauthServer { public static void main(String[] args) { SpringApplication.run(OauthServer.class, args); } }