permitAccess 설정 읽기 수정

master
mjkhan21 1 year ago
parent 1ceb84b343
commit 56d955357b

@ -98,8 +98,8 @@ public class SecurityConfig extends AbstractComponent {
}
private String[] getPermittedAccess(boolean ignoringOnly) {
String str = properties.getString("permitAccess", "");
List<String> ignoring = !str.isEmpty() ? Stream.of(str.split(",")).map(String::trim).toList() : Collections.emptyList();
String[] str = properties.getStringArray("permitAccess");
List<String> ignoring = !isEmpty(str) ? Stream.of(str).map(String::trim).toList() : Collections.emptyList();
if (ignoringOnly) {
return ignoring.toArray(new String[ignoring.size()]);
}

Loading…
Cancel
Save