package com.yonge.cooleshow.admin;

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;

import com.spring4all.swagger.EnableSwagger2Doc;

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

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