Skip to content

Simplify MvcRequestMatcher construction #13562

Open
@jzheaux

Description

@jzheaux

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

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions