package com.sptg.pay.biz;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import com.sptg.pay.api.entity.PayCertificate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * title: PayApplication
 * package: com.sptg.pay.biz
 * description: 支付模块启动类
 *
 *
 *
 */
@Slf4j
@SpringBootApplication
@EnableCaching
@EnableHystrix
@EnableDistributedTransaction
@EnableEurekaClient
@EnableFeignClients(basePackages = {
        "com.sptg.estate.api.feigns"
})
@ComponentScan(basePackages = {
        "com.sptg.pay.biz",
        "com.sptg.estate.api.feigns"
})
public class PayApplication {
    public static void main(String[] args){
        SpringApplication.run(PayApplication.class, args);
        log.warn("启动完成");
    }
}
