package com.yonge.cooleshow.classroom;

import com.spring4all.swagger.EnableSwagger2Doc;
import com.yonge.cooleshow.common.constant.AppConstant;
import com.yonge.toolset.base.BaseApplication;
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.biz.dal.dao", "com.yonge.cooleshow.biz.dal.mapper", "com.yonge.toolset.payment.core.dao"})
@ComponentScan(basePackages = {
        "com.yonge.cooleshow", "com.yonge.toolset"
})
@Configuration
@EnableSwagger2Doc
public class ClassroomApplication {
    public static void main(String[] args) {
        BaseApplication.run(AppConstant.APPLICATION_CLASSROOM, ClassroomApplication.class, args);
    }

}
