shiro整合springboot-03-缓存

时间:2021-02-23 14:27:13   收藏:0   阅读:0

使用CacheManager

1 Cache 作用

技术图片

 

 

2 .使用shiro中默认EhCache实现缓存

(1).引入依赖

<!--引入shiro和ehcache-->
<dependency>
  <groupId>org.apache.shiro</groupId>
  <artifactId>shiro-ehcache</artifactId>
  <version>1.5.3</version>
</dependency>

(2).开启缓存

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!