类的使用
org.springframework.http.converter.json.MappingJacksonValue
使用MappingJacksonValue的程序包 程序包 说明 org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.method.annotation中MappingJacksonValue的使用
返回MappingJacksonValue的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected MappingJacksonValue
AbstractMappingJacksonResponseBodyAdvice. getOrCreateContainer(Object body)
Wrap the body in aMappingJacksonValue
value container (for providing additional serialization instructions) or simply cast it if already wrapped.参数类型为MappingJacksonValue的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected abstract void
AbstractMappingJacksonResponseBodyAdvice. beforeBodyWriteInternal(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response)
Invoked only if the converter type isMappingJackson2HttpMessageConverter
.protected void
JsonViewResponseBodyAdvice. beforeBodyWriteInternal(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response)