package net.northking.cctp.executePlan;

import cn.gjing.tools.auth.config.EnableAuthorization;
import net.northking.cctp.common.config.EnableNKCloud;
import net.northking.cctp.common.config.EnableNKWebMvc;
import net.northking.cctp.common.s3.EnableS3;
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.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * <p>Title: ExecutePlanApplication</p>
 * <p>Description: </p>
 *
 * @Author chenjianfeng
 * @Version V1.0
 * @Date 2022/12/02
 * <p>Copyright (c) 京北方信息技术股份有限公司 Corporation 2022 . All rights reserved.</p>
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan({"net.northking.cctp.executePlan.db.mapper", "net.northking.cctp.executePlan.db.dao"})
@EnableNKCloud
@EnableNKWebMvc
@EnableS3
@EnableAuthorization
@EnableTransactionManagement // 开启事务
@EnableFeignClients(basePackages = {"net.northking.cctp.executePlan.feign", "net.northking.cctp.common.feign", "com.hzbank.testteam.autotest"})
@ComponentScan(basePackages = {"net.northking.cctp.executePlan","com.hzbank.testteam.autotest"})
public class ExecutePlanApplication {

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

    public static void main(String[] args) {
        logger.info("执行计划微服务启动----开始 .................");

        SpringApplication.run(ExecutePlanApplication.class, args);

        logger.info("执行计划微服务启动----完成 .................");

    }
}
