XStream 解析xml 错误:com.thoughtwork
2019-02-25 本文已影响0人
cinchel_0117
在实例化XStream后
xstream.processAnnotations(list.class);
<root><lists><list/><list/></lists></root>
class root{
@XStreamImplicit(itemFieldName ="lists")
List<list> lists;
}
在实例化XStream后
xstream.processAnnotations(list.class);
<root><lists><list/><list/></lists></root>
class root{
@XStreamImplicit(itemFieldName ="lists")
List<list> lists;
}