Constructing an MvcRequestMatcher can be confusing since it's unclear where to obtain a HandlerMappingIntrospector from.
Spring Security could publish a prototype bean like so to make that easier:
@Bean
@Scope("prototype")
MvcRequestMatcher.Builder mvcRequestMatcherBuilder(HandlerMappingIntrospector introspector) {
return new MvcRequestMatcher.Builder(introspector);
}
Constructing an
MvcRequestMatchercan be confusing since it's unclear where to obtain aHandlerMappingIntrospectorfrom.Spring Security could publish a prototype bean like so to make that easier: