config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java
public HttpSecurity mvcMatcher(String mvcPattern) {
		HandlerMappingIntrospector introspector = new HandlerMappingIntrospector(getContext());
		return requestMatcher(new MvcRequestMatcher(introspector, mvcPattern));
	}
public HttpSecurity mvcMatcher(String mvcPattern) {
		HandlerMappingIntrospector introspector = new HandlerMappingIntrospector(getContext());
		return requestMatcher(new MvcRequestMatcher(introspector, mvcPattern));
	}
Allows configuring the {@link HttpSecurity} to only be invoked when matching the
provided Spring MVC pattern. If more advanced configuration is necessary, consider using
{@link #requestMatchers()} or {@link #requestMatcher(RequestMatcher)}.

<p>
Invoking {@link #mvcMatcher(String)} will override previous invocations of {@link #mvcMatcher(String)}},
{@link #requestMatchers()}, {@link #antMatcher(String)},
{@link #regexMatcher(String)}, and {@link #requestMatcher(RequestMatcher)}.
</p>

@param mvcPattern the Spring MVC Pattern to match on (i.e. "/admin/**")
@return the {@link HttpSecurity} for further customizations
@see MvcRequestMatcher