【springmvc配置xml文件时Errors报错解决】
新建一个web项目后,首先加入了jar包,然后在WEB-INF文件夹下新建一个web.xml文件,在网上可以找到完整配置;接着在src文件夹下建立自己的包,和springmvc.xml文件。这次问题主要是提示Description Resource Path Location Type
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd). For more information, right click on the message in the Problems View and select "Show Details..." springmvc.xml /springmvc02/src line 1 XML Problem
错误。如图:
然后将第7行http://www.springframework.org/schema/beans/spring-beans.xsd 的beans修改为beans-3.1.xsd。错误排除,结果如图: