More than one fragment with the name [spring_web] was found. This is not legal ...

 今天在搭建springweb應用環境的時候啓動tomcat報錯More than one fragment with the name [spring_web] was found. This is not legal ...java

··· Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.     at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2200)     at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2159)     at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1124)     at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5134)     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)     ... 6 more

搞了一上午。。。web

來源地址:https://stackoverflow.com/questions/54290263/more-than-one-fragment-with-the-name-spring-web-was-found-this-is-not-legal-wspring

在web.xml加一個標籤:<absolute-ordering />apache

相關文章
相關標籤/搜索