跳到主要内容
版本:7.0.3

XML序列化

Hunyuan 7b 中英对照 XML Marshalling

MarshallingView 使用一个 XML Marshaller(定义在 org.springframework.oxm 包中)来将响应内容渲染为 XML。你可以通过使用 MarshallingView 实例的 modelKey bean 属性来显式设置要被序列化的对象。或者,该视图会遍历所有的模型属性,并序列化 Marshaller 支持的第一个类型。有关 org.springframework.oxm 包中功能的更多信息,请参阅 使用 O/X Mappers 序列化 XML