草庐IT

java - 如何在jaxb中使用继承?

我有一个抽象类地址,以及两个继承自类地址的类..A类和B类。所以我在google中找到了注释@xmlSeeAlso我使用了这个,但我不知道它是否正确...因为stackTrace打印了这个错误com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException:11countsofIllegalAnnotationExceptionsClasshastwopropertiesofthesamename"bairro"thisproblemisrelatedtothefollowinglocation:atpublicjava.