From 7ceb15ca33e459f19971118d0c85a5bcf4e41ac0 Mon Sep 17 00:00:00 2001 From: yangzhengze <1403014932@qq.com> Date: Tue, 29 May 2018 11:09:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E9=80=80=E5=87=BA=E6=97=B6,?= =?UTF-8?q?=20=E9=80=80=E5=87=BAlogout=E5=9C=B0=E5=9D=80=EF=BC=8Cshiro?= =?UTF-8?q?=E5=8E=BB=E6=B8=85=E9=99=A4session=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=87=BA=E7=8E=B0shiro=E6=8A=A5=E6=B2=A1=E6=9C=89=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ruoyi/framework/config/ShiroConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/ruoyi/framework/config/ShiroConfig.java b/src/main/java/com/ruoyi/framework/config/ShiroConfig.java index 19e3fceb..372532da 100644 --- a/src/main/java/com/ruoyi/framework/config/ShiroConfig.java +++ b/src/main/java/com/ruoyi/framework/config/ShiroConfig.java @@ -240,6 +240,9 @@ public class ShiroConfig filterChainDefinitionMap.put("/captcha/captchaImage**", "anon"); // 退出 logout地址,shiro去清除session filterChainDefinitionMap.put("/logout", "logout"); + //强制退出时, 退出logout地址,shiro去清除session,防止出现shiro报没有权限错误。 + filterChainDefinitionMap.put("/monitor/online/batchForceLogout", "logout"); + filterChainDefinitionMap.put("/monitor/online/forceLogout/**", "logout"); // 不需要拦截的访问 filterChainDefinitionMap.put("/login", "anon,captchaValidate"); // 系统权限列表