public class ApiVersionHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
| 构造器和说明 |
|---|
ApiVersionHandlerMapping() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.web.servlet.mvc.condition.RequestCondition<?> |
getCustomMethodCondition(Method method)
method condition
- 在方法上加@ApiVersion注解&url加{version}
|
protected org.springframework.web.servlet.mvc.condition.RequestCondition<?> |
getCustomTypeCondition(Class<?> handlerType)
class condition
- 在class上加@ApiVersion注解&url加{version}
|
afterPropertiesSet, createRequestMappingInfo, getBuilderConfiguration, getContentNegotiationManager, getFileExtensions, getMappingForMethod, getPathPrefixes, initCorsConfiguration, isHandler, match, registerHandlerMethod, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetDirectPaths, getHandlerInternal, getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, hasCorsConfigurationSource, initHandlerMethods, lookupHandlerMethod, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, setPatternParser, unregisterMappingadaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, initApplicationContext, initInterceptors, initLookupPath, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatternsgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextprotected org.springframework.web.servlet.mvc.condition.RequestCondition<?> getCustomTypeCondition(Class<?> handlerType)
getCustomTypeCondition 在类中 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappinghandlerType - class typeprotected org.springframework.web.servlet.mvc.condition.RequestCondition<?> getCustomMethodCondition(Method method)
getCustomMethodCondition 在类中 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingmethod - method objectCopyright © 2025. All rights reserved.