Skip to content

Latest commit

 

History

History
4 lines (2 loc) · 422 Bytes

19-7.md

File metadata and controls

4 lines (2 loc) · 422 Bytes

19.7 XML编组视图

MarshallingView使用org.springframework.oxm包中定义的XML Marshaller将响应内容呈现为XML。 要编组的对象可以使用MarhsallingView的`modelKey bean属性显式设置。 或者,视图将遍历所有模型属性并编组Marshaller支持的第一个类型。 有关org.springframework.oxm软件包中的功能的更多信息,请参阅使用O / X Mappers编组XML的章节。