diff --git a/src/main/java/cokr/xit/base/boot/SecurityConfig.java b/src/main/java/cokr/xit/base/boot/SecurityConfig.java index a5e8f20..e8e84b8 100644 --- a/src/main/java/cokr/xit/base/boot/SecurityConfig.java +++ b/src/main/java/cokr/xit/base/boot/SecurityConfig.java @@ -98,8 +98,8 @@ public class SecurityConfig extends AbstractComponent { } private String[] getPermittedAccess(boolean ignoringOnly) { - String str = properties.getString("permitAccess", ""); - List ignoring = !str.isEmpty() ? Stream.of(str.split(",")).map(String::trim).toList() : Collections.emptyList(); + String[] str = properties.getStringArray("permitAccess"); + List ignoring = !isEmpty(str) ? Stream.of(str).map(String::trim).toList() : Collections.emptyList(); if (ignoringOnly) { return ignoring.toArray(new String[ignoring.size()]); }