package com.nbclass;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

import tk.mybatis.spring.annotation.MapperScan;

/**
 * 
 * @author Leon
 * @datetime 2019年3月31日 下午7:21:36
 */
@SpringBootApplication
@MapperScan(basePackages = "com.nbclass.**.mapper")
public class CasesBootApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(CasesBootApplication.class, args);
	}
	
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(CasesBootApplication.class);
	}
	
}
