我有一个需要反序列化的 XML 字符串
<LOC attribute="example">
<VehAvail>
<VehAvailCore>
<Fees>
<Fee att1="a" att2="b" att3="c"/>
<Fee att1="x" att2="y" att3="z"/>
</Fees>
</VehAvailCore>
</VehAvail>
</LOC>
这就是我正在尝试的,但我没有确切的解决方案来添加上面的两个包装器和
@JacksonXmlElementWrapper(localName = "Fees")
@JacksonXmlProperty(localName="Fee")
private List<Fee> fees = new ArrayList();
如何使用 JacksonXML Annotation 将其反序列化为 Java POJO 类?