Springboot The requested profile "pom.xml" could not be activated because it doesn't n

Posted LQT

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Springboot The requested profile "pom.xml" could not be activated because it doesn't n相关的知识,希望对你有一定的参考价值。

头一次写springboot项目,打成war包时,pom.xml也都配置了,网上查了很多资料说是maven环境和java环境的问题,但是看了后没有发现什么问题,删了maven下的.m2maven库再重载也没有什么卵用,

后来在项目上右击 -->propreties -->maven 点击Pestore Defaults 把文本框的pom.xml给清空,然后Applly and close 保存并退出,再次打包。项目下的target下就有了war包。

以上是关于Springboot The requested profile "pom.xml" could not be activated because it doesn't n的主要内容,如果未能解决你的问题,请参考以下文章

springboot常用注解

springboot常用注解

The pits in the connecting postgresql with mybatis in the springboot project

Springboot项目启动:报错The last packet sent successfully to the server was 0 milliseconds ago

SpringBoot任意位置获取HttpServletRequest对象

SpringBoot常用注解