我正在使用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" />
Run Code Online (Sandbox Code Playgroud)
但我没有找到配置我的自定义KeyGenerator的方法.任何的想法?