Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将 POJO 与 xmlbean 绑定时,如果缺少通常带有 int 的标记,则将其映射为 0。我知道 adbean 会将其映射为 Integer.MIN_VALUE。xmlbean 是否有这种可能性或其他任何东西?
谢谢,
大卫
如果可以,请更改 WSDl:放入 Integer,而不是 int
我不确定我是否理解这个问题,但您可以使用它.isSetFoo()来检查 foo 元素是否存在于 xml 文档中。
.isSetFoo()