package com.sptg.statistics.biz;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * title: StatisticsApplication
 * package: com.sptg.statistics.biz
 * description: 统计模块启动类
 *
 *                  
 *                 
 */
@Slf4j
@SpringBootApplication
@EnableEurekaClient
@EnableHystrix
@EnableAsync
@EnableDistributedTransaction
@EnableFeignClients(basePackages = {
        "com.sptg.permissions.api.feigns",
        "com.sptg.ad.api.feigns"
})
@ComponentScan(value = {
        "com.sptg.statistics.biz",
        "com.sptg.permissions.api.feigns",
        "com.sptg.ad.api.feigns"
})
public class StatisticsApplication {

    public static void main(String[] args) {
        SpringApplication.run(StatisticsApplication.class,args);
        log.warn("启动完成");
    }
}
