【发布时间】:2011-10-07 12:31:17
【问题描述】:
我正在使用 Spring 3.1,我想使用新的缓存功能。然后,我尝试了:
<cache:annotation-driven />
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"
p:cache-manager-ref="ehcache" />
<!-- Ehcache library setup -->
<bean id="ehcache"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
p:config-location="classpath:ehcache.xml" />
但我没有找到配置自定义 KeyGenerator 的方法。有什么想法吗?
【问题讨论】:
标签: java spring caching ehcache