Open
Description
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);
}