1:将jar包改成war包

springboot启动方式由内置tomcat改成外置tomcat
2:移除内嵌tomcat

springboot启动方式由内置tomcat改成外置tomcat

3:加入servlet-APi
springboot启动方式由内置tomcat改成外置tomcat
4:修改代码:
springboot启动方式由内置tomcat改成外置tomcat

5:运行mvn clean install命令
springboot启动方式由内置tomcat改成外置tomcat

6:加入tomcat:
springboot启动方式由内置tomcat改成外置tomcat

7:添加war包
springboot启动方式由内置tomcat改成外置tomcat

8:启动项目
springboot启动方式由内置tomcat改成外置tomcat

相关文章: