https://blog.csdn.net/yanyuan1993/article/details/82108829 image.png 继承SpringBootServletInitializer可以指定外部war包,设置端口号,项目名。