我们有两个包:
现在,当我们为它们创建JAXB元素时,它显示以下异常:
Two classes have the same XML type name "{http://api.yash.com/v3}user".
Use @XmlType.name and @XmlType.namespace to assign different names to them.
this problem is related to the following location:
at com.yash.user
at protected com.indore.user
--> this problem is related to the following location:
at com.yash.user
但对于这两个类,我们需要一个相同名称@XMLTYPE(name =“user”)。
我们可以为此找到解决方案吗?