刚刚导入的maven项目的Spring配置文件报错:

Ecliplse导入maven项目applicationContext.xml报错:Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-3.1.xsd). For more information, right click on the message in 随笔 第1张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

大体意思是说:

引用的文件包含错误(http://www.springframework.org/schema/context/springing-context -3.1.xsd)。为

更多信息,右击Problems视图中的消息并选择“Show Details…”

解决方法:

在项目上右键选择validate,然后静静等待ecliplse重新验证我们项目的所有文件:

Ecliplse导入maven项目applicationContext.xml报错:Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-3.1.xsd). For more information, right click on the message in 随笔 第2张

 

validate 验证项目中的文件中代码有没有不规范的地方,有的话会显示红叉。可以校验代码中不规范的地方,消除红叉的作用

该功能用于检测代码存在的“潜在”问题,比如:JSP文件的语法错误,XML中的schema错误等。

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄