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

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.jpa.CctpJpaRepository;
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.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 微服务启动类
 *
 * @author : xiusong.xie
 * @version : 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableNKCloud
@EnableNKWebMvc
@EnableJpaRepositories(repositoryBaseClass = CctpJpaRepository.class)
@EnableAuthorization
@EnableFeignClients(basePackages = {"net.northking.cctp.flowable", "com.hzbank.testteam.autotest"})
@ComponentScan(basePackages = {"net.northking.cctp.flowable","com.hzbank.testteam.autotest"})
public class WorkFlowApplication
{
  private static final Logger logger = LoggerFactory.getLogger(WorkFlowApplication.class);

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

  }
}
