webservice 调用报错。
a实体里面有 b实体 ,b 实体中有c实体。
结果b实体中 一直报 重复的属性
参考:
https://developer.ibm.com/answers/questions/181324/class-has-two-properties-of-the-same-name-error-wh.html
在b实体类上加了
@XmlRootElement(name = "xxx") @XmlAccessorType(XmlAccessType.FIELD)就可以了。