package cn.pluss.platform;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@MapperScan("cn.pluss.platform.mapper")
@SpringBootApplication(exclude = MultipartAutoConfiguration.class)
public class ManageApplication extends SpringBootServletInitializer {

	private static final Logger logger = LoggerFactory.getLogger(ManageApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(ManageApplication.class, args);
		logger.info("ManageApplication Service Start Success");
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(ManageApplication.class);
	}

}
