【发布时间】:2012-12-19 15:57:45
【问题描述】:
我正在将我们的代码迁移到 Spring 3.2 版本(来自 3.1.3)并且我遇到了 Spring Cache Abstraction 的问题。
我们使用CacheManager的EhCache实现,其配置非常简单:
<cache:annotation-driven />
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cache-manager-ref="ehcache" />
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:config-location="classpath:ehcache.xml" />
我的问题是我在spring-context jar 中缺少EhCacheCacheManager 类和相应的工厂bean。我想他们将实现移到了其他模块,但我找不到确切的位置。
【问题讨论】:
-
你的 bean decalrations 现在是什么样子的?
-
它们是一样的,我刚刚更新了我的 maven 配置并包含了
spring-context-support依赖项 -
哇!谢谢...错过了添加依赖项