From 8e0a9544632fc79fc4163af945f95a1d2bb1dcde Mon Sep 17 00:00:00 2001 From: duwenyuan <15600000461@163.com> Date: Wed, 24 Dec 2025 09:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=BF=E5=90=8Durl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/config/shiro/ShiroConfig.java | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java index 6ba987ac..8ddfda4a 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java @@ -52,7 +52,7 @@ public class ShiroConfig { /** * Filter Chain定义说明 - * + *

* 1、一个URL可以配置多个Filter,使用逗号分隔 * 2、当设置多个过滤器时,全部验证通过,才视为通过 * 3、部分过滤器可指定参数,如perms,roles @@ -65,12 +65,12 @@ public class ShiroConfig { Map filterChainDefinitionMap = new LinkedHashMap(); //支持yml方式,配置拦截排除 - if(jeecgBaseConfig!=null && jeecgBaseConfig.getShiro()!=null){ + if (jeecgBaseConfig != null && jeecgBaseConfig.getShiro() != null) { String shiroExcludeUrls = jeecgBaseConfig.getShiro().getExcludeUrls(); - if(oConvertUtils.isNotEmpty(shiroExcludeUrls)){ + if (oConvertUtils.isNotEmpty(shiroExcludeUrls)) { String[] permissionUrl = shiroExcludeUrls.split(","); - for(String url : permissionUrl){ - filterChainDefinitionMap.put(url,"anon"); + for (String url : permissionUrl) { + filterChainDefinitionMap.put(url, "anon"); } } } @@ -119,14 +119,14 @@ public class ShiroConfig { filterChainDefinitionMap.put("/swagger**/**", "anon"); filterChainDefinitionMap.put("/webjars/**", "anon"); filterChainDefinitionMap.put("/v2/**", "anon"); - + filterChainDefinitionMap.put("/sys/annountCement/show/**", "anon"); //积木报表排除 filterChainDefinitionMap.put("/jmreport/**", "anon"); filterChainDefinitionMap.put("/**/*.js.map", "anon"); filterChainDefinitionMap.put("/**/*.css.map", "anon"); - + //大屏模板例子 filterChainDefinitionMap.put("/test/bigScreen/**", "anon"); filterChainDefinitionMap.put("/bigscreen/template1/**", "anon"); @@ -140,6 +140,14 @@ public class ShiroConfig { filterChainDefinitionMap.put("/newsWebsocket/**", "anon");//CMS模块 filterChainDefinitionMap.put("/vxeSocket/**", "anon");//JVxeTable无痕刷新示例 + //邮件监控 排除 + filterChainDefinitionMap.put("/sysEmailLog/getDashboardDailyStats", "anon"); + filterChainDefinitionMap.put("/sysEmailLog/getRecentEmailDatas", "anon"); + filterChainDefinitionMap.put("/sysEmail/sourceList", "anon"); + //台站有效率 + filterChainDefinitionMap.put("/stationOperation/getStationProvisionEff", "anon"); + + //性能监控——安全隐患泄露TOEKN(durid连接池也有) //filterChainDefinitionMap.put("/actuator/**", "anon"); //测试模块排除 @@ -149,7 +157,7 @@ public class ShiroConfig { Map filterMap = new HashMap(1); //如果cloudServer为空 则说明是单体 需要加载跨域配置【微服务跨域切换】 Object cloudServer = env.getProperty(CommonConstant.CLOUD_SERVER_KEY); - filterMap.put("jwt", new JwtFilter(cloudServer==null)); + filterMap.put("jwt", new JwtFilter(cloudServer == null)); shiroFilterFactoryBean.setFilters(filterMap); //