Spring-boot更改成war包的方式

转载至:

 https://blog.csdn.net/zhuwei_clark/article/details/82114102 

Step1 修改启动类

 

Step2 修改配置文件为properties形式

 

转换地址:http://www.toyaml.com/index.html

注意:该参数不起作用

Step 3 修改pom文件打包方式,没有就新增

 

Step4 修改spring-boot-starter-web包

 

Step5 修改build

这里特别注意:如果父项目引用了spring-boot-maven-plugin 需要删除。

 

 

posted on 2018-08-27 16:41  yhtomail  阅读(152)  评论(0编辑  收藏  举报

导航