config/src/main/java/org/springframework/security/config/annotation/web/configurers/ExceptionHandlingConfigurer.java
public ExceptionHandlingConfigurer<H> defaultAuthenticationEntryPointFor(
			AuthenticationEntryPoint entryPoint, RequestMatcher preferredMatcher) {
		this.defaultEntryPointMappings.put(preferredMatcher, entryPoint);
		return this;
	}
public ExceptionHandlingConfigurer<H> defaultAuthenticationEntryPointFor(
			AuthenticationEntryPoint entryPoint, RequestMatcher preferredMatcher) {
		this.defaultEntryPointMappings.put(preferredMatcher, entryPoint);
		return this;
	}
Sets a default {@link AuthenticationEntryPoint} to be used which prefers being
invoked for the provided {@link RequestMatcher}. If only a single default
{@link AuthenticationEntryPoint} is specified, it will be what is used for the
default {@link AuthenticationEntryPoint}. If multiple default
{@link AuthenticationEntryPoint} instances are configured, then a
{@link DelegatingAuthenticationEntryPoint} will be used.

@param entryPoint the {@link AuthenticationEntryPoint} to use
@param preferredMatcher the {@link RequestMatcher} for this default
{@link AuthenticationEntryPoint}
@return the {@link ExceptionHandlingConfigurer} for further customizations