提交 | 用户 | 时间 | ||
722af2 | 1 | package com.dl; |
X | 2 | |
3 | import org.springframework.boot.builder.SpringApplicationBuilder; | |
4 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | |
5 | ||
6 | /** | |
7 | * web容器中进行部署 | |
8 | * | |
9 | * @author dl | |
10 | */ | |
11 | public class DingleServletInitializer extends SpringBootServletInitializer { | |
12 | ||
13 | @Override | |
14 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | |
15 | return application.sources(DingleApplication.class); | |
16 | } | |
17 | ||
18 | } |