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 validate request versions against.ApiVersionConfigurer.setDefaultVersion(@Nullable String defaultVersion) Configure a default version to assign to requests that don't specify one.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.usePathSegment(int index) Add a resolver that extracts the API version from a path segment.ApiVersionConfigurer.useRequestHeader(String headerName) Add a resolver that extracts the API version from a request header.ApiVersionConfigurer.useRequestParam(String paramName) Add a resolver that extracts the API version from a request parameter.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.