如何生成List<Type>
ArrayOf{Type} ?例如方法返回
[WebMethod]
public List<long> GetSimple()
WSDL2Java 将生成:
public ru.test.ws.ArrayOfLong GetSimple();
长数组:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfLong", propOrder = {
"_long"
})
public class ArrayOfLong
implements Serializable
{
@XmlElement(name = "long", type = Long.class)
protected List<Long> _long;
public List<Long> getLong() {
if (_long == null) {
_long = new ArrayList<Long>();
}
return this._long;
}
}
如何配置 CXF 和 JAXB 以使用List<Long>
ArrayOfLong?