package com.rrtx.services;

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.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * ClassName: AdmApplication<br>
 * Description: AdmApplication <br>
 * Company: rrtx
 *
 * @author rrtx
 * @version v1.0.0    2019/7/24 4:41 PM  xugz    文件初始创建
 */
@SpringBootApplication
@EnableAsync
@EnableTransactionManagement
@MapperScan("com.rrtx.services.**.mapper")
@EnableSwagger2 // https://doc.xiaominfo.com/ 文档
@EnableSwaggerBootstrapUI
@ServletComponentScan //Servlet、Filter、Listener 可以直接通过 @WebServlet、@WebFilter、@WebListener 注解自动注册，无需其他代码。
public class ServicesApplication {

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

}
