19.13 XML Mapping View

TheMappingJackson2XmlViewuses theJackson XML extension'sXmlMapperto render the response content as XML. If the model contains multiples entries, the object to be serialized should be set explicitly using themodelKeybean property. If the model contains a single entry, it will be serialized automatically.

XML mapping can be customized as needed through the use of JAXB or Jackson’s provided annotations. When further control is needed, a customXmlMappercan be injected through theObjectMapperproperty for cases where custom XML serializers/deserializers need to be provided for specific types.

results matching ""

    No results matching ""