XML 編組
MarshallingView
使用 XML Marshaller
(定義於 org.springframework.oxm
套件中)將回應內容呈現為 XML。您可以透過使用 MarshallingView
實例的 modelKey
Bean 屬性,明確設定要編組的物件。或者,檢視會迭代所有模型屬性,並編組 Marshaller
支援的第一個型別。如需 org.springframework.oxm
套件中功能的詳細資訊,請參閱 使用 O/X Mappers 編組 XML。