Java教程

java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found.

本文主要是介绍java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found.,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found.

 

 删掉一个,重新运行tomcat即可,如果在项目的 web-inf 目录的 lib 目录中也存在 不同的两个jar 包,也得删掉一个哦,要不再编译运行的时候还是会加上的

 

 

解决办法就是:

在web.xml加一个标签:<absolute-ordering />

 

<web-app>
  <display-name>Archetype Created Web Application</display-name>
  <absolute-ordering></absolute-ordering>
</web-app>

 

这篇关于java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!