throw new IllegalStateException("permitAll only works with HttpSecurity.authorizeRequests()");
}
for(RequestMatcher matcher : requestMatchers) {
if(matcher != null) {
configurer.getRegistry().addMapping(0, new UrlMapping(matcher, SecurityConfig.createList(ExpressionUrlAuthorizationConfigurer.permitAll)));
}
}
}