解决shiro登陆后,isAuthenticated仍是false问题

shiro经过默认的登陆拦截器FormAuthenticationFilter登陆后,在java中调用SecurityUtils.getSubject().isAuthenticated()或在jsp页面中使用shiro:authenticated标签,结果仍是为false。最终查明缘由,在spring配置sessionManager时,使用了org.apache.shiro.session.mgt.DefaultSessionManager,将它改成org.apache.shiro.web.session.mgt.DefaultWebSessionManager就能够了。
相关文章
相关标签/搜索