类 ObjectToStringHttpMessageConverter

java.lang.Object
cn.taketoday.http.converter.AbstractHttpMessageConverter<Object>
cn.taketoday.http.converter.ObjectToStringHttpMessageConverter
所有已实现的接口:
HttpMessageConverter<Object>

public class ObjectToStringHttpMessageConverter extends AbstractHttpMessageConverter<Object>
An HttpMessageConverter that uses StringHttpMessageConverter for reading and writing content and a ConversionService for converting the String content to and from the target object type.

By default, this converter supports the media type text/plain only. This can be overridden through the supportedMediaTypes property.

A usage example:

 <bean class="cn.taketoday.http.converter.ObjectToStringHttpMessageConverter">
   <constructor-arg>
     <bean class="cn.taketoday.context.support.ConversionServiceFactoryBean"/>
   </constructor-arg>
 </bean>
 
从以下版本开始:
4.0
作者:
Dmitry Katsubo, Rossen Stoyanchev