package com.zfire.jiasm.syncdata;

import com.zfire.jiasm.syncdata.utils.ApplicationContextUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableDiscoveryClient
@SpringBootApplication
@EnableScheduling
@ServletComponentScan(basePackages = {"com.zfire.jiasm.syncdata"})
@EnableAsync
// @EnableFeignClients
@EnableCaching
@MapperScan(basePackages = {
        "com.zfire.jiasm.syncdata.plus.mapper",
        "com.zfire.jiasm.syncdata.dao.*"
})
public class ManagerApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(ManagerApplication.class, args);
        ApplicationContextUtils.setApplicationContext(context);
    }

}
