package com.sptg.third.biz;

import com.github.tobato.fastdfs.FdfsClientConfig;
import com.sptg.common.core.locale.I18Config;
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.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * title: ThirdApplication
 * package: com.sptg.third.biz
 * description: 第三方接口推送启动类
 */
@Slf4j
@SpringBootApplication
@EnableEurekaClient
@EnableScheduling
@EnableAsync
@EnableFeignClients(basePackages = {
        "com.sptg.iot.api.feigns",
        "com.sptg.video.cloud.api.feigns",
        "com.sptg.device.api.feigns",
        "com.sptg.estate.api.feigns",
        "com.sptg.permissions.api.feigns"
})
@ComponentScan(value = {
        "com.sptg.third.biz",
        "com.sptg.iot.api.feigns",
        "com.sptg.video.cloud.api.feigns",
        "com.sptg.device.api.feigns",
        "com.sptg.estate.api.feigns",
        "com.sptg.permissions.api.feigns"
})
@Import({FdfsClientConfig.class})
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class ThirdApplication {

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