2025-07-17 18:07:48 +08:00
|
|
|
package com.klp;
|
2021-12-21 10:15:12 +08:00
|
|
|
|
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* web容器中进行部署
|
|
|
|
|
*
|
2025-07-17 18:07:48 +08:00
|
|
|
* @author klp
|
2021-12-21 10:15:12 +08:00
|
|
|
*/
|
2025-07-17 18:07:48 +08:00
|
|
|
public class KLPServletInitializer extends SpringBootServletInitializer {
|
2021-12-21 10:15:12 +08:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
2025-07-17 18:07:48 +08:00
|
|
|
return application.sources(KLPApplication.class);
|
2021-12-21 10:15:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|