设置了一个新的基于Spring的应用程序后,我遇到了引用模式(http://www.springframework.org/schema/beans/spring-beans -3.0.xsd)在应用程序上下文中。在应用上下文中的Spring Beans Schema的验证错误
appContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
....
</beans:beans>
错误
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd).
即使我减少配置的最低版本(无任何bean定义),我得到这个错误。有人提示有什么问题吗?提前致谢!
顺便说一句:我使用的是STS 2.7.1
我已经解决了这个问题。这是由一些缓存文件引起的。删除这些项目后(首选项 - >常规 - >网络连接 - >缓存),一切按预期工作。 谢谢! – devpg
我遇到了完全相同的问题。对于Spring beans,我使用的是http://www.springframework.org/schema/beans/spring-beans-2.0.xsd,对于AOP,它是http://www.springframework.org/schema/aop/spring-aop- 3.0.xsd。 我只是将aop xsd版本更改为2.0(与bean相同),问题就解决了。 – santu