接口的使用
org.springframework.http.converter.GenericHttpMessageConverter
使用GenericHttpMessageConverter的程序包 程序包 说明 org.springframework.http.converter Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.org.springframework.http.converter.cbor Provides an HttpMessageConverter for the CBOR data format.org.springframework.http.converter.json Provides HttpMessageConverter implementations for handling JSON.org.springframework.http.converter.smile Provides an HttpMessageConverter for the Smile data format ("binary JSON").org.springframework.http.converter.xml Provides HttpMessageConverter implementations for handling XML.org.springframework.http.converter中GenericHttpMessageConverter的使用
实现GenericHttpMessageConverter的org.springframework.http.converter中的类 修饰符和类型 类 说明 class
AbstractGenericHttpMessageConverter<T>
Abstract base class for mostGenericHttpMessageConverter
implementations.class
ResourceRegionHttpMessageConverter
Implementation ofHttpMessageConverter
that can write a singleResourceRegion
, or Collections ofResourceRegions
.org.springframework.http.converter.cbor中GenericHttpMessageConverter的使用
实现GenericHttpMessageConverter的org.springframework.http.converter.cbor中的类 修饰符和类型 类 说明 class
MappingJackson2CborHttpMessageConverter
Implementation ofHttpMessageConverter
that can read and write the CBOR data format using the dedicated Jackson 2.x extension.org.springframework.http.converter.json中GenericHttpMessageConverter的使用
实现GenericHttpMessageConverter的org.springframework.http.converter.json中的类 修饰符和类型 类 说明 class
AbstractJackson2HttpMessageConverter
Abstract base class for Jackson based and content type independentHttpMessageConverter
implementations.class
AbstractJsonHttpMessageConverter
Common base class for plain JSON converters, e.g.class
GsonHttpMessageConverter
Implementation ofHttpMessageConverter
that can read and write JSON using the Google Gson library.class
JsonbHttpMessageConverter
Implementation ofHttpMessageConverter
that can read and write JSON using the JSON Binding API.class
MappingJackson2HttpMessageConverter
Implementation ofHttpMessageConverter
that can read and write JSON using Jackson 2.x'sObjectMapper
.org.springframework.http.converter.smile中GenericHttpMessageConverter的使用
实现GenericHttpMessageConverter的org.springframework.http.converter.smile中的类 修饰符和类型 类 说明 class
MappingJackson2SmileHttpMessageConverter
Implementation ofHttpMessageConverter
that can read and write Smile data format ("binary JSON") using the dedicated Jackson 2.x extension.org.springframework.http.converter.xml中GenericHttpMessageConverter的使用
实现GenericHttpMessageConverter的org.springframework.http.converter.xml中的类 修饰符和类型 类 说明 class
Jaxb2CollectionHttpMessageConverter<T extends Collection>
AnHttpMessageConverter
that can read XML collections using JAXB2.class
MappingJackson2XmlHttpMessageConverter
Implementation ofHttpMessageConverter
that can read and write XML using Jackson 2.x extension component for reading and writing XML encoded data.