springboot发布war包部署
springboot发布war包部署
1. 程序入口类需继承 SpringBootServletInitializer 类
2. 程序入口复写以下方法
@Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { // TODO Auto-generated method stub //return super.configure(builder); return builder.sources(SpringbootApplication.class); }