From a47b6e350e0c8a18b2e0db8964199e392667b3ed Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 10 Dec 2024 14:20:56 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E8=A2=AB=E4=BB=A3?=
 =?UTF-8?q?=E7=90=86=E7=B1=BB=E5=8C=BF=E5=90=8D=E8=AE=BF=E9=97=AE=E5=A4=B1?=
 =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98(IB4EJ0)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../config/properties/PermitAllUrlProperties.java      | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java
index 0e6a9116..ec626f4e 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java
@@ -37,11 +37,15 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
         Map<String, Object> controllers = applicationContext.getBeansWithAnnotation(Controller.class);
         for (Object bean : controllers.values())
         {
-            if (!(bean instanceof Advised))
+            Class<?> beanClass;
+            if (bean instanceof Advised)
             {
-                continue;
+                beanClass = ((Advised) bean).getTargetSource().getTarget().getClass();
+            }
+            else
+            {
+                beanClass = bean.getClass();
             }
-            Class<?> beanClass = ((Advised) bean).getTargetSource().getTarget().getClass();
             RequestMapping base = beanClass.getAnnotation(RequestMapping.class);
             String[] baseUrl = {};
             if (Objects.nonNull(base))