shiro ajxa请求 登录状态失效302无法重定向登录页
解决方法重写FormAuthenticationFilter 类的onAccessDenied方法,并判断如果请求是ajax请求,就在header中添加一个需要登录的标识,并且设置response status为401,避免还是200而继续走ajax的成功回调。然后Ajax添加全局事件,当有需要登录的标识时,将页面定位到登录画面。重写filter方法public class MyShiroAuthcFilter extends FormAuthenticationFilter { p



