我需要创建一个宁静的服务。我无法访问某些类,但需要在结果中发送相同的类。有没有办法将对象映射到xml。我尝试使用 org.springframework.oxm.castor.CastorMarshaller 但它会在 xml 中给出额外标签的响应,例如
<bean-property-binding-result field-error-count="0" global-error-count="0" error-count="0">
有没有办法使用 castor marshaller 完成它?如果没有,任何人都可以重定向到写页面