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;