基于涛哥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;小案例的话就参考
用来了解springmvc+ehcache web.xml等xml的配置写法
版权声明:本文为博主原创文章,未经博主允许不得转载。
today lazy . tomorrow die .
浙公网安备 33010602011771号