在eclipse部署maven项目的时候,xml文件有红叉,并显示错误: Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.1.xsd) 解决方法: 如果你的工具比较新,有可能是缺少标签,加上xml boday标签就ok。 如下图: