本项目使用EhCache缓存数据和方法,缓存在JVM本地
this project uses ehcache for caching both data and method in Local JVM
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.4</version>
</dependency>
- 配置文件:EhCacheConfig
configuration: EhCacheConfig - 使用参照Example
see Example