package shop.alien.second;

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.second.*")
@EnableFeignClients(basePackages = {"shop.alien.second.feign"})
@ComponentScan({
        "shop.alien.second.*",
        "shop.alien.util.*",
        "shop.alien.config.http",
        "shop.alien.config.databases",
        "shop.alien.config.feign",
        "shop.alien.config.properties",
        "shop.alien.config.redis"})
@MapperScan({
        "shop.alien.mapper",
        "shop.alien.mapper.second"})
@EnableSwaggerBootstrapUI
@SpringBootApplication
@EnableScheduling
public class AlienSecondApplication {

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

}
