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

参考文档:

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

https://blog.csdn.net/yingxiake/article/details/51246605

https://blog.csdn.net/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   结果

猜你喜欢

转载自blog.csdn.net/m0_38084243/article/details/80711818