【发布时间】:2013-05-09 07:03:47
【问题描述】:
最初,我的 POJO 中有所有没有注释的字段,这些字段在 Soap Response 中显示得很好
<fieldName>value</fieldName>
现在我需要显示字段,即使值为空;然后我为这些字段添加了注释 @XmlElement(nillable = true)
现在在我的肥皂响应中,它显示为:
<fieldName xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
我不想在我的肥皂响应中显示 xsi、xmlns 等;我怎么做?
在字段级别、类级别等显示 jaxb 中所有注释的任何链接?
【问题讨论】:
标签: jaxb annotations