1.创建一个springboot工程,打包方式选择war

springboot项目添加外部servlet容器

2.选择web应用

springboot项目添加外部servlet容器

3.点击项目结构project structure,点击Modules

springboot项目添加外部servlet容器

4.点击Modules

springboot项目添加外部servlet容器

5.双击文件,点击OK,确定生成目录

springboot项目添加外部servlet容器

6.生成web.xml文件

springboot项目添加外部servlet容器

7.自动生成web.xml

springboot项目添加外部servlet容器

8.点击apply  OK

9.整个web项目结构

springboot项目添加外部servlet容器

10.添加外部tomcat容器

springboot项目添加外部servlet容器

11.添加tomcat,

springboot项目添加外部servlet容器

12.点击deploymennt

springboot项目添加外部servlet容器

13,选择自己的项目:

springboot项目添加外部servlet容器

14点击apply OK

相关文章: