Spring 3.2和Cache Abstraction缺少EhCache实现 [英] Spring 3.2 and Cache Abstraction missing EhCache implementation

查看:69
本文介绍了Spring 3.2和Cache Abstraction缺少EhCache实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将代码迁移到 Spring 3.2 版本(从 3.1.3 ),但是Spring Cache Abstraction出现了问题.

I am migrating our code to Spring 3.2 version (from 3.1.3) and I've got an issue with Spring Cache Abstraction.

我们使用CacheManager的EhCache实现,其配置非常简单:

We use EhCache implementation of CacheManager and its configuration is quite simple:

<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" />

我的问题是我缺少EhCacheCacheManager类和spring-context jar中的相应工厂bean.我想他们将实现转移到了其他模块,但是我找不到确切的位置.

My problem is that I am missing EhCacheCacheManager class and corresponding factory bean in spring-context jar. I suppose they moved implementation to some other module, but I can't find where exactly.

推荐答案

根据

"org.springframework.cache.ehcache包中的EHCache支持类已从spring-context模块转移到spring-context-support".

"the EHCache support classes in the org.springframework.cache.ehcache package moved from the spring-context module to spring-context-support".

这篇关于Spring 3.2和Cache Abstraction缺少EhCache实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆