Part V. 数据访问-21. 使用O/X Mappers编组XML-21.5 JAXB
JAXB绑定编译器将W3C XML模式转换为一个或多个Java类, Spring支持JAXB 2.0 API作为XML编组策略,遵循第21.2节“Marshaller和Unmarshaller”中描述的 21.5.1 Jaxb2Marshaller <beans>
基于XML Schema的配置 <oxm:jaxb2-marshaller id="marshaller" contextPath="org.springframework.ws.samples.airline.schema"/>
或者,可以通过待绑定的子标签将绑定的类列表提供给编组者: "marshaller"> <oxm:class-to-be-bound name="org.springframework.ws.samples.airline.schema.Airport"/> <oxm:class-to-be-bound name="org.springframework.ws.samples.airline.schema.Flight"/> ... </oxm:jaxb2-marshaller> 可用属性有:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |