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