From c0afd904d0646b425cdf907207d8eb5c0b72dbb9 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 6 Nov 2024 20:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8C=BF=E5=90=8D=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E7=A9=BA=E5=80=BC=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98(IASXHN)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/properties/PermitAllUrlProperties.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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 068310246..0e6a9116b 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 @@ -91,9 +91,16 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont List urls = new ArrayList<>(); for (String base : bases) { - for (String uri : uris) + if (uris.length > 0) { - urls.add(prefix(base) + prefix(uri)); + for (String uri : uris) + { + urls.add(prefix(base) + prefix(uri)); + } + } + else + { + urls.add(prefix(base)); } } return urls;