mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-18 13:26:43 +08:00
14 lines
391 B
Java
14 lines
391 B
Java
![]() |
package ${packageName};
|
||
|
|
||
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||
|
import org.springframework.boot.context.web.SpringBootServletInitializer;
|
||
|
|
||
|
public class ServletInitializer extends SpringBootServletInitializer {
|
||
|
|
||
|
@Override
|
||
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||
|
return application.sources(Application.class);
|
||
|
}
|
||
|
|
||
|
}
|