| | |
| | | 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; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | |
| | |
| | | @SpringBootApplication |
| | | @MapperScan("com.doumee.dao") |
| | | @EnableAsync |
| | | public class OfficialWebsiteApplication { |
| | | public class OfficialWebsiteApplication extends SpringBootServletInitializer { |
| | | public static void main(String[] args) { |
| | | ApplicationContext context = SpringApplication.run(OfficialWebsiteApplication.class); |
| | | context.getEnvironment(); |
| | | } |
| | | |
| | | @Override |
| | | protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { |
| | | return builder.sources(OfficialWebsiteApplication.class) ; |
| | | } |
| | | } |