eclipse配置springmvc报错More than one fragment with the name [spring_web] was found
小弟刚开始学习springmvc, ide使用的是eclipse, 导入jar包后,配置web.xml, springmvc-servlet.xml 就绪,
eclipse控制台启动tomcat报错提示:
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.
网上查了解决方案是说在web.xml里面添加:<absolute-ordering />
但是,添加这个后eclipse报错:cvc-complex-type.2.4.a: Invalid content was found starting with element 'absolute-ordering'.
版本信息:
springmvc 版本是4.3.9, tomatcat版本是8.5, jre版本是1.8.1
请大家指点一下。
感谢。