类 MappingJacksonValue

java.lang.Object
cn.taketoday.http.converter.json.MappingJacksonValue

public class MappingJacksonValue extends Object
A simple holder for the POJO to serialize via MappingJackson2HttpMessageConverter along with further serialization instructions to be passed in to the converter.

On the server side this wrapper is added with a ResponseBodyInterceptor after content negotiation selects the converter to use but before the write.

On the client side, simply wrap the POJO and pass it in to the RestTemplate.

从以下版本开始:
4.0
作者:
Rossen Stoyanchev