Package icu.easyj.web.spring
Interface WebMvcConfigurerAdapter
- All Superinterfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- All Known Implementing Classes:
CorsWebMvcConfigurer
public interface WebMvcConfigurerAdapter
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurer
为了兼容低版本的spring-webmvc,添加该适配器类
- Author:
- wangliang181230
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) default voidaddCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) default voidaddFormatters(org.springframework.format.FormatterRegistry registry) default voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) default voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) default voidaddReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> returnValueHandlers) default voidaddViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) default voidconfigureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer) default voidconfigureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) default voidconfigureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer) default voidconfigureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) default voidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) default voidconfigurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) default voidconfigureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry) default voidextendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) default voidextendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) default org.springframework.validation.MessageCodesResolverdefault org.springframework.validation.Validator
-
Method Details
-
configurePathMatch
default void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) - Specified by:
configurePathMatchin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureContentNegotiation
default void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) - Specified by:
configureContentNegotiationin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureAsyncSupport
default void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer) - Specified by:
configureAsyncSupportin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureDefaultServletHandling
default void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer) - Specified by:
configureDefaultServletHandlingin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
default void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addInterceptors
default void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addResourceHandlers
default void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addCorsMappings
default void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) - Specified by:
addCorsMappingsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addViewControllers
default void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) - Specified by:
addViewControllersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureViewResolvers
default void configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry) - Specified by:
configureViewResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
default void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) - Specified by:
addArgumentResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addReturnValueHandlers
default void addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> returnValueHandlers) - Specified by:
addReturnValueHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureMessageConverters
default void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
configureMessageConvertersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendMessageConverters
default void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
extendMessageConvertersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureHandlerExceptionResolvers
default void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) - Specified by:
configureHandlerExceptionResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendHandlerExceptionResolvers
default void extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) - Specified by:
extendHandlerExceptionResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getValidator
default org.springframework.validation.Validator getValidator()- Specified by:
getValidatorin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getMessageCodesResolver
default org.springframework.validation.MessageCodesResolver getMessageCodesResolver()- Specified by:
getMessageCodesResolverin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-