Uses of Class
org.springframework.web.servlet.config.annotation.ApiVersionConfigurer
Packages that use ApiVersionConfigurer
Package
Description
Annotation-based setup for Spring MVC.
-
Uses of ApiVersionConfigurer in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return ApiVersionConfigurerModifier and TypeMethodDescriptionApiVersionConfigurer.addSupportedVersions(String... versions) Add to the list of supported versions to check against before raisingInvalidApiVersionExceptionfor unknown versions.ApiVersionConfigurer.detectSupportedVersions(boolean detect) Whether to use versions from mappings for supported version validation.ApiVersionConfigurer.setDefaultVersion(@Nullable String defaultVersion) Configure a default version to assign to requests that don't specify one.ApiVersionConfigurer.setDeprecationHandler(ApiVersionDeprecationHandler handler) Configure a handler to add handling for requests with a deprecated API version.ApiVersionConfigurer.setVersionParser(@Nullable ApiVersionParser<?> versionParser) Configure a parser to parse API versions with.ApiVersionConfigurer.setVersionRequired(boolean required) Whether requests are required to have an API version.ApiVersionConfigurer.useMediaTypeParameter(MediaType compatibleMediaType, String paramName) Add resolver to extract the version from a media type parameter found in the Accept or Content-Type headers.ApiVersionConfigurer.usePathSegment(int index) Add resolver to extract the version from a path segment.ApiVersionConfigurer.useQueryParam(String paramName) Add resolver to extract the version from a query string parameter.ApiVersionConfigurer.useRequestHeader(String headerName) Add resolver to extract the version from a request header.ApiVersionConfigurer.useVersionResolver(ApiVersionResolver... resolvers) Add custom resolvers to resolve the API version.Methods in org.springframework.web.servlet.config.annotation with parameters of type ApiVersionConfigurerModifier and TypeMethodDescriptionprotected voidDelegatingWebMvcConfiguration.configureApiVersioning(ApiVersionConfigurer configurer) protected voidWebMvcConfigurationSupport.configureApiVersioning(ApiVersionConfigurer configurer) Override this method to configure API versioning.default voidWebMvcConfigurer.configureApiVersioning(ApiVersionConfigurer configurer) Configure API versioning for the application.