基于涛哥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;

小案例的话就参考

shiro+springmvc 都使用缓存http://www.open-open.com/lib/view/open1397717078375.html
shiro+springmvc 都使用缓存http://aijuans.iteye.com/blog/1856782
用来了解springmvc+ehcache web.xml等xml的配置写法 

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

相关文章:

  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2019-09-17
  • 2022-01-15
  • 2022-01-10
  • 2019-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
相关资源
相似解决方案