Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-2.5.xsd). For more information, right click on the message in the Problems
View and select "Show Details..."错误的三种可能
1、当前使用的spring版本和配置文件写的不统一,导致xsd等文件不会被正确加载,那么就是改成当前使用的对应版本了。
2、在使用spring时,使用多个配置文件,那么头里面的配置一定要统一。
如:版本不一样,错误。如下图
把2.0版本换位2.5后,红叉消失
3、之前用了Spring版本,和现在用的不同
对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一
Preferences -> General -> Network Connections -> Cache 删除里面的缓存。