基于涛哥shiro案例16 的这时候要配置service方法的缓存
在spring-config.xml添加
<context:annotation-config /> <cache:annotation-driven cache-manager="springCacheManager" />
使用的话就
public class TestController { @Autowired private UserService userService; @Autowired private CacheManager springCacheManager;
小案例的话就参考
http://www.open-open.com/lib/view/open1397717078375.html
http://aijuans.iteye.com/blog/1856782
用来了解springmvc+ehcache web.xml等xml的配置写法
http://aijuans.iteye.com/blog/1856782
用来了解springmvc+ehcache web.xml等xml的配置写法
版权声明:本文为博主原创文章,未经博主允许不得转载。