2025-10-13 09:48:25 +08:00
|
|
|
package com.delivery;
|
2025-10-11 10:44:05 +08:00
|
|
|
|
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* web容器中进行部署
|
2025-10-13 09:48:25 +08:00
|
|
|
*
|
|
|
|
|
* @author delivery
|
2025-10-11 10:44:05 +08:00
|
|
|
*/
|
2025-10-13 09:48:25 +08:00
|
|
|
public class DeliveryServletInitializer extends SpringBootServletInitializer {
|
|
|
|
|
|
2025-10-11 10:44:05 +08:00
|
|
|
@Override
|
2025-10-13 09:48:25 +08:00
|
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
|
|
|
|
return application.sources(DeliveryApplication.class);
|
2025-10-11 10:44:05 +08:00
|
|
|
}
|
|
|
|
|
}
|