package com.winsun;


import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 
 *
 */
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableEurekaClient
@SpringBootApplication
@RefreshScope
@EnableFeignClients({"com.winsun","com.winsun.auth.core"})
@MapperScan(basePackages = {"com.winsun.*.mapper","com.winsun.mapper"})
@EnableScheduling   // 开启定时任务
public class TaskServiceApplication {

    private final static Logger logger = LoggerFactory.getLogger(TaskServiceApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(TaskServiceApplication.class, args);
        logger.info("定时任务模块启动成功!!!");
    }
}
