将ehcache与spring 3.0集成 [英] Integrating ehcache with spring 3.0

查看:96
本文介绍了将ehcache与spring 3.0集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用spring 3.0.2和ibatis的应用程序。现在,我需要将ehcache与我的代码集成在一起。我尝试了此链接,但无法正常工作。我希望有人给我所需的jar的详细信息,要完成的xml配置以及如果需要的代码更改。

I have an application in which I use spring 3.0.2 and ibatis. Now, I need to integrate ehcache with my code. I tried this link but couldnt get it working. I would prefer someone to give me the details of the jars required, xml configurations to be done and code changes if required.

推荐答案

升级到最新的spring 3.1里程碑-它具有通过注释内置的缓存支持-请参阅此处

Upgrade to the latest spring 3.1 milestone - it has built-in cache support through annotations - see here

除此之外,您始终可以使用 EhCacheFactoryBean

Apart from that, you can always use the EhCacheFactoryBean

这篇关于将ehcache与spring 3.0集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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