package com.winsun;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
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;

/**
 * 系统启动入口
 * @author Liph
 */
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableEurekaClient
@SpringBootApplication(exclude= {DruidDataSourceAutoConfigure.class})
@RefreshScope
@EnableFeignClients({"com.winsun","com.winsun.auth.core"})
@MapperScan(basePackages = {"com.winsun.*.mapper","com.winsun.mapper"})
@EnableScheduling   // 开启定时任务
public class SchoolServiceApplication {

    private final static Logger logger = LoggerFactory.getLogger(SchoolServiceApplication.class);
    
    public static void main(String[] args) {
        SpringApplication.run(SchoolServiceApplication.class, args);
        logger.info("集约平台核心服务系统模块启动成功!!!");
    }
}
