package com.zzsn;

import org.mybatis.spring.annotation.MapperScan;
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;

@SpringBootApplication
@MapperScan(basePackages = "com.zzsn.dao")
//@MapperScan(value={"classpath:mapper/*Mapper.xml"})
public class BaiduMetaSearchApplication extends SpringBootServletInitializer {

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

	public static void main(String[] args) {
		SpringApplication.run(BaiduMetaSearchApplication.class, args);
//		new SpringApplicationBuilder(BaiduMetaSearchApplication.class).web(true).run(args);
	}

}
