package net.northking.cctp.mobile;

import com.hzbank.testteam.autotest.dependencies.baseDefineDependency.config.BaseDefineDependencyConfig;
import com.hzbank.testteam.autotest.dependencies.baseDefineDependency.utils.SpringUtil;
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.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan({"net.northking.cctp.mobile.db.mapper", "net.northking.cctp.mobile.db.dao"})
@EnableNKCloud
@EnableNKWebMvc
@EnableFeignClients(basePackages = {"net.northking.cctp.mobile.feign"})
@EnableScheduling
@EnableAsync
@Import({BaseDefineDependencyConfig.class, SpringUtil.class})
public class MobileBusinessApplication {

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

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