在实例化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;
}