package shop.alien.api;

import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan({
        //配置
        "cc.xiaokuihua.config.databases",
        "cc.xiaokuihua.config.feign",
//        "cc.xiaokuihua.config.filter",
        "cc.xiaokuihua.config.http",
        "cc.xiaokuihua.config.redis",
        //此项目
        "cc.xiaokuihua.api.*"
})
@EnableFeignClients(basePackages = {"cc.xiaokuihua.api.feign"})
@EnableSwaggerBootstrapUI
@SpringBootApplication
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }

}
