标签:blank stack strong post java tps inline url entry
@ElementList(name = "elements", entry = "element") protected List<Element> elements;
<elements class="java.util.ArrayList"> <element> ....... </element> </elements>
移除class属性有两种方法:
1、类型设置为ArrayList
2、@Path("elements")
@ElementList(entry = "element",inline=true)
引用自:https://stackoverflow.com/questions/12113025/remove-class-attribute
SimpleXML @ElementList注解移除class属性
标签:blank stack strong post java tps inline url entry
原文地址:http://www.cnblogs.com/joann/p/7233204.html