Hi,
I'm just curious how to make @Cacheable work for Controller methods?
I have a core/web module project with
cache:annotation-driven in core/applicationContext.xml
When I add
cache:annotation-driven in web/applicationContext.xml
my @Cacheable methods are not executed.
I've also tried adding
to web/applicationContext.xmlPHP Code:<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cacheManager-ref="ehcache"/>
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
p:config-location="classpath:/ehcache.xml"/>
Any ideas?
Marc


Reply With Quote