sts环境下从spring boot项目中导出war文件

参考文档:

https://www.2cto.com/kf/201604/502999.html

https://blog.youkuaiyun.com/yingxiake/article/details/51246605

https://blog.youkuaiyun.com/yingxiake/article/details/51245565

1  修改pom.xml

2  修改启动类

3  Maven bulide

4  输入package的命令

报错:No compiler is provided in this environment. Perhaps you are running on a JRK ……

解决方案:https://zhidao.baidu.com/question/2053876598889689747.html

报错:WARNING The requested profile “pom.xml” could not be activated because it does not exist

解决方案:https://stackoverflow.com/questions/28192761/spring-maven-clean-error-the-requested-profile-pom-xml-could-not-be-activate

Step - 1 Right click on your project in Eclipse
Step - 2 Click Properties
Step - 3 Select Maven in the left hand side list.
Step - 4 You will notice "pom.xml" in the Active Maven Profiles text box on the right hand side. Clear it and click Apply.

5   结果

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值