@Configuration public class WebMvcConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Constructor and Description |
---|
WebMvcConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
添加自定义方法参数解析器
|
void |
extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
扩展HTTP消息转换器做Json解析处理
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
extendMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
addArgumentResolvers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.