package com.sptg.iot.biz;

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.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author zwx
 * @create 2020/10/15 11:49
 */
@Slf4j
@EnableHystrix
@EnableAsync
@SpringBootApplication
@EnableEurekaClient
@EnableScheduling
@EnableFeignClients(basePackages = {
        "com.sptg.third.api.feigns"
})
@ComponentScan(basePackages = {
        "com.sptg.iot.biz",
        "com.sptg.third.api.feigns"
})
public class IotApplication {
    public static void main(String[] args) {
        SpringApplication.run(IotApplication.class,args);
        log.warn("启动完成");
    }
}
