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

谁借莪1个温暖的怀抱¢ 2021-11-29 23:22 424阅读 0赞

报错信息:

  1. ···
  2. 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.
  3. at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2200)
  4. at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2159)
  5. at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1124)
  6. at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
  7. at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
  8. at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
  9. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5134)
  10. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  11. ... 6 more

解决办法:

在web.xml加一个标签:

如下

20190722202017973.png

参考文章:https://www.cnblogs.com/bobkingblog/p/10899545.html

发表评论

表情:
评论列表 (有 0 条评论,424人围观)

还没有评论,来说两句吧...

相关阅读