@Configuration public class WebMvcConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| 构造器和说明 |
|---|
WebMvcConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, waitaddCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidatorpublic void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
extendMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
addArgumentResolvers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerCopyright © 2020 Pivotal Software, Inc.. All rights reserved.