@Component
public class FrameworkControllerHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
FrameworkMappings inside FrameworkController and FrameworkRestController classes.
When framework controllers are enabled with EnableAllFrameworkControllers, EnableFrameworkControllers, or EnableFrameworkRestControllers and a class is annotated with FrameworkController or FrameworkRestController then this class will add FrameworkMappings found
within the class to handler mappings. This class has a lower priority than the default RequestMappingHandlerMapping so when a request comes in,
RequestMappings located inside a class annotated with Controller or RestController will
have a higher priority and be found before FrameworkMappings found within a FrameworkController or
FrameworkRestController.
The site handler mappings in play in order of precedence from highest to lowest are:
RequestMappingHandlerMappingFrameworkControllerHandlerMappingThe admin handler mappings in play in order of precedence from highest to lowest are:
AdminRequestMappingHandlerMappingFrameworkControllerHandlerMappingAdminControllerHandlerMappingEnableAllFrameworkControllers,
EnableFrameworkControllers,
EnableFrameworkRestControllers,
FrameworkController,
FrameworkRestController,
FrameworkMapping| Modifier and Type | Field and Description |
|---|---|
static int |
REQUEST_MAPPING_ORDER |
| Constructor and Description |
|---|
FrameworkControllerHandlerMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected boolean |
isHandler(Class<?> beanType) |
afterPropertiesSet, createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, initCorsConfiguration, match, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, lookupHandlerMethod, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setCorsConfigurations, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextpublic static final int REQUEST_MAPPING_ORDER
protected boolean isHandler(Class<?> beanType)
isHandler in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingCopyright © 2019. All rights reserved.