There is more than one Web fragment with the same name: "spring_web". 解决方案

用到了 tomcat,maven,提示 There is more than one Web fragment with the same name: “spring_web”.错误
使用的软件:IDEA

错误定位:

根据报错提示,说有重复的模块,即找到重复的删掉即可。

解决方案:

IDEA 中 右上的运行设置那,打开 Edit Configuration —— 左边选中自己的 tomcat server —— Deployment —— 选中自己的组件 —— 右边铅笔图标 —— Artifacts 看看有没有多余的 xxx explored (xxx是项目名)

其他方案

stackoverflow

猜你喜欢

转载自blog.csdn.net/qq_35425070/article/details/89101387