在用Spring+xfire做webservice服务器的时候,用jaxb反向生成xml。结果报错如下
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
Class has two properties of the same name "appID"
this problem is related to the following location:
at public java.lang.String com.ericsson.adp.domain.webservice.CommissionCompanyImport.getAppID()
at com.ericsson.adp.domain.webservice.CommissionCompanyImport
this problem is related to the following location:
解决方法:
把注解从字段位置移动get方法位置