郑永安
2023-08-15 c94f3c34d1c2c5a1d5e7010ab1e3cd0aded3cfac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.gk.hotwork;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
 
 
public class ServletInitializer extends SpringBootServletInitializer {
 
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        //Application的类名
        return application.sources(HotworkApplication.class);
    }
 
}