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;
import org.springframework.context.annotation.Import;
import shop.alien.util.encryption.JasyptAutoConfiguration;

@ComponentScan({
        //配置
        "shop.alien.config.databases",
        "shop.alien.config.feign",
        "shop.alien.config.http",
        "shop.alien.config.redis",
        //工具类
        "shop.alien.util.*",
        //此项目
        "shop.alien.api.*"
})
@Import(JasyptAutoConfiguration.class)
@EnableFeignClients(basePackages = {"shop.alien.api.feign"})
@EnableSwaggerBootstrapUI
@SpringBootApplication
public class ApiApplication {

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

}
