/*
 * Copyright (c) 京北方信息技术股份有限公司 Corporation 2021 . All rights reserved.
 *
 */
package net.northking.cctp.project;

import cn.gjing.tools.auth.config.EnableAuthorization;
import net.northking.cctp.common.config.EnableNKCloud;
import net.northking.cctp.common.config.EnableNKWebMvc;
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.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 测试系统App
 *
 * @author : xiusong.xie
 * @version : 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan({"net.northking.cctp.project.db.mapper", "net.northking.cctp.project.db.dao", "net.northking.cctp.project.db.query"})
@EnableNKCloud
@EnableNKWebMvc
@EnableAsync
@EnableAuthorization
@EnableTransactionManagement // 开启事务
@EnableFeignClients(basePackages = {"net.northking.cctp.project", "net.northking.cctp.common.feign", "com.hzbank.testteam.autotest"})
@ComponentScan(basePackages = {"net.northking.cctp.project","com.hzbank.testteam.autotest"})
public class ProjectsApplication
{
  private static final Logger logger = LoggerFactory.getLogger(ProjectsApplication.class);

  public static void main(String[] args)
  {
    logger.info("微服务启动----开始 .................");
    SpringApplication.run(ProjectsApplication.class, args);
    logger.info("微服务启动----完成 .................");
  }
}
