shiro
k678mh
这个作者很懒,什么都没留下…
展开
-
"No cache or cacheManager properties have been set. Authorization cache cannot be obtained."
shiro ini配置文件添加:myRealm.authorizationCachingEnabled = falsemyRealm为自定义的文件原创 2013-12-12 15:32:27 · 7532 阅读 · 0 评论 -
Shiro自带过滤器
Filter NameClassanonorg.apache.shiro.web.filter.authc.AnonymousFilterauthcorg.apache.shiro.web.filter.authc.FormAuthenticationFilterauthcBas原创 2014-01-24 10:11:12 · 1638 阅读 · 0 评论 -
shiro讲解
shiro架构与配置:http://www.cnblogs.com/skyme/archive/2011/09/12/2173842.htmlShiro 授权:http://www.cnblogs.com/chenying99/archive/2012/07/21/2602619.htmlPasswordService实现密码加密存储和比对:http://blog.cs原创 2014-01-24 09:58:07 · 536 阅读 · 0 评论 -
Shiro 设置session超时时间
设置的最大时间,正负都可以,为负数时表示永不超时。开发过程中,设置负数时,遇到点儿问题:SecurityUtils.getSubject().getSession().setTimeout(-1l);这样调用后,总是抛出session已经过时的异常,一直找不到原因,后来调试源码才发现,这里设置的时间单位是:ms,但是Shiro会把这个时间转成:s,而且是会舍掉小原创 2014-01-24 10:04:14 · 5092 阅读 · 0 评论