1
我想在Spring中使用EhCache。我跟着tutorial它说这行添加到我的spring.xml:EhCache Spring XML集成命名空间
<ehcache:annotation-driven cache-manager="ehCacheManager" />
的问题是,在命名空间的Ehcache中不存在的教程。寻找在谷歌,我发现了以下Spring配置:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd">
但我得到的XSD架构中的错误没有发现,实际上,如果我按照XSD URL,我收到了404
所以问题是,我在哪里可以找到名称空间和模式?
为了清楚起见,这里的错误,我得到了注解驱动线:
- CVC-复杂type.2.4.c:匹配通配符是严格的,但没有申报,可以发现元素'ehcache:注解驱动'。
- schema_reference.4:无法读取模式文档'http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd',因为1)找不到 文档; 2)文件无法阅读; 3)文档的根元素不是。
谢谢。
就是这样,谢谢!不知道为什么它很难找到......我猜这个项目在春天里一直都在铺开...... – Aurasphere