From 02a2eceb3747e3b0c0c5c6d329dadfb4d79cb930 Mon Sep 17 00:00:00 2001 From: zch Date: Tue, 17 Dec 2024 16:58:53 +0800 Subject: [PATCH] =?UTF-8?q?add(security):=20=E5=85=81=E8=AE=B8=E5=8C=BF?= =?UTF-8?q?=E5=90=8D=E8=AE=BF=E9=97=AE=E5=AD=97=E5=85=B8=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 SecurityConfig 中添加了允许匿名访问字典类型的配置 - 新增 "/system/dict/data/type/**"路径的访问权限为 permitAll() --- .../main/java/com/ruoyi/framework/config/SecurityConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 3791a9c..ddb83fa 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -137,6 +137,10 @@ public class SecurityConfig .antMatchers("/board/index2").permitAll() .antMatchers("/board/index1").permitAll() .antMatchers("/board/index").permitAll() + .antMatchers("/board/index3").permitAll() + + // 允许匿名访问 字典类型 + .antMatchers("/system/dict/data/type/**").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated();