2026-04-17 17:12:41 +08:00
|
|
|
package com.maibu;
|
2026-04-17 12:39:29 +08:00
|
|
|
|
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* web容器中进行部署
|
2026-04-17 17:12:41 +08:00
|
|
|
*
|
2026-04-17 12:39:29 +08:00
|
|
|
* @author ruoyi
|
|
|
|
|
*/
|
2026-04-17 17:12:41 +08:00
|
|
|
public class MiddlePlatformServletInitializer extends SpringBootServletInitializer {
|
2026-04-17 12:39:29 +08:00
|
|
|
@Override
|
2026-04-17 17:12:41 +08:00
|
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
|
|
|
|
return application.sources(MiddlePlatformApplication.class);
|
2026-04-17 12:39:29 +08:00
|
|
|
}
|
|
|
|
|
}
|