france

https://github.com/francecil

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理


基于涛哥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的配置写法 

版权声明:本文为博主原创文章,未经博主允许不得转载。

posted on 2015-03-07 00:22  france  阅读(293)  评论(0编辑  收藏  举报