package com.yonge.cooleshow.bbs;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.yonge.cooleshow")
@MapperScan(basePackages = {"com.yonge.cooleshow.bbs.dao"})
@ComponentScan(basePackages = {
        "com.yonge.cooleshow.auth",
        "com.yonge.cooleshow.common",
        "com.yonge.cooleshow.common.security",
        "com.yonge.toolset.thirdparty",
        "com.yonge.cooleshow.bbs"
})
@Configuration
@EnableSwagger2Doc
public class BbsApplication {

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

}
