package shop.alien.storeplatform;

import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.mybatis.spring.annotation.MapperScan;
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.scheduling.annotation.EnableScheduling;

@ComponentScan({
        "shop.alien.storeplatform.*",
        "shop.alien.util.*",
        "shop.alien.config.http",
        "shop.alien.config.databases",
        "shop.alien.config.properties",
        "shop.alien.config.redis",
        "shop.alien.util.*"})
@EnableSwaggerBootstrapUI
@MapperScan({"shop.alien.mapper", "shop.alien.storeplatform.mapper"})
@SpringBootApplication
@EnableFeignClients(basePackages = "shop.alien.storeplatform.feign")
@EnableScheduling
public class AlienStorePlatformApplication {

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

}