@Configuration public class WebConfigure extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| 构造器和说明 |
|---|
WebConfigure() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean @Primary public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2020. All rights reserved.