Shiro Session 配置不管用?!

<!--弄了半天,shiro的Session配置不管用,原来是缺少shiro-ehcache的依赖-->
 <dependency>
     <groupId>org.apache.shiro</groupId>
     <artifactId>shiro-ehcache</artifactId>
     <version>1.2.2</version>
 </dependency>

shiro封装了sessionDao用于对sesson的增删改查,并且采用ehcache缓存作为存储方式(ehcache+terracotta可以实现session容器无关的存储集群)

参考:SessionManagement-SessionStorage

猜你喜欢

转载自blog.csdn.net/u011730792/article/details/79388389
今日推荐