EhCache Spring XML 集成命名空间

EhCache Spring XML integration namespace

我想将 EhCache 与 Spring 一起使用。我已经按照 tutorial 说要将此行添加到我的 spring.xml:

<ehcache:annotation-driven cache-manager="ehCacheManager" />

问题是教程中没有 ehcache 命名空间。查看 Google 我发现了以下 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。

所以问题是,我在哪里可以找到名称空间和架构?

为了清楚起见,这是我在注释驱动行上遇到的错误:

谢谢。

我使用:

<beans ...
    xmlns:cache="http://www.springframework.org/schema/cache"
    xsi:schemaLocation="
        ...
        http://www.springframework.org/schema/cache 
        http://www.springframework.org/schema/cache/spring-cache.xsd

<cache:annotation-driven cache-manager="cacheManager" />

那么具体绑定到ehcache就是在cacheManager bean中

<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" ... />