package com.sptg.video.cloud.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.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author zwx
 * @create 2020/10/15 15:16
 */
@Slf4j
@SpringBootApplication
@EnableEurekaClient
@EnableDistributedTransaction
@EnableScheduling
@EnableFeignClients(basePackages = {
        "com.sptg.third.api.feigns"
})
@ComponentScan(basePackages = {
        "com.sptg.video.cloud.biz",
        "com.sptg.third.api.feigns"
})
public class VideoCloudApplication {

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