简体   繁体   English

Spring MVC中的ehcache

[英]ehcache in spring mvc

I want to achive Spring annotation based cache using ehcache to cache some methods . 我想使用ehcache cache some methods来实现基于Spring注释的缓存。

I know the way how it works. 我知道它是如何工作的。

My question is to resolve the dependency . 我的问题是resolve the dependency

I need to know is it ehcache-core.jar is enough to achieve method level cache ? 我需要知道ehcache-core.jar是否足以实现方法级缓存?

or we need whole ehcache.jar to achieve the same . 或者我们需要整个ehcache.jar来实现相同的效果。

if anyone explain me the difference between those 2 jars and help me to choose best fit one it would be great help for me. 如果有人向我解释这两个罐子之间的区别,并帮助我选择最适合的一个罐子,那将对我有很大帮助。

also my application is using ehcahce-core with 2.4.1 already and 我的应用程序也已经使用ehcahce-core with 2.4.1

if i want to use ehcache.jar then i need to find the same version of ehcahce.jar which is bit challenging as i am currently not finding it. 如果我想使用ehcache.jar那么我需要找到相同版本的ehcahce.jar ,这有点挑战,因为我目前没有找到它。

Spring annotation bases caching with EhCache support will work with either the ehcache-core.jar or ehcache.jar (one of my projects uses the first while another uses the other). 具有EhCache支持的Spring注释基础缓存将与ehcache-core.jarehcache.jar (我的一个项目使用第一个,而另一个使用另一个)。

You can find all the versions of ehcache.jar here and the versions of ehcache-core.jar here . 你可以找到的所有版本ehcache.jar 这里和版本ehcache-core.jar 在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM