Return the PathMatcher implementation to use for matching URL paths
against registered URL patterns.
public void setInterceptors(java.lang.Object... interceptors)
Set the interceptors to apply for all handlers mapped by this handler mapping.
Supported interceptor types are HandlerInterceptor, WebRequestInterceptor, and MappedInterceptor.
Mapped interceptors apply only to request URLs that match its path patterns.
Mapped interceptor beans are also detected by type during initialization.
name - the name of the bean in the factory.
Note that this name is the actual bean name used in the factory, which may
differ from the originally specified name: in particular for inner bean
names, the actual bean name might have been made unique through appending
"#..." suffixes. Use the BeanFactoryUtils.originalBeanName(String)
method to extract the original bean name (without suffix), if desired.
On CORS pre-flight requests this method should return a match not for
the pre-flight request but for the expected actual request based on the URL
path, the HTTP methods from the "Access-Control-Request-Method" header, and
the headers from the "Access-Control-Request-Headers" header thus allowing
the CORS configuration to be obtained via getCorsConfiguration(Object, HttpServletRequest),
Note: This method may also return a pre-built HandlerExecutionChain,
combining a handler object with dynamically determined interceptors.
Statically specified interceptors will get merged into such an existing chain.
request - current HTTP request
the corresponding handler instance, or null if none found
java.lang.Exception - if there is an internal error
The default implementation builds a standard HandlerExecutionChain
with the given handler, the handler mapping's common interceptors, and any
MappedInterceptors matching to the current request URL. Interceptors
are added in the order they were registered. Subclasses may override this
in order to extend/rearrange the list of interceptors.
NOTE: The passed-in handler object may be a raw handler or a
pre-built HandlerExecutionChain. This method should handle those
two cases explicitly, either building a new HandlerExecutionChain
or extending the existing chain.