在另外一台機器上部署項目,項目導進Eclipse中發現有異常
public class BooleanFeatureType
extends FeatureBaseType{
@XmlElementRef(name = "Value", namespace = "http://schemas.sean.com/ma/CA/OPM/",
type = JAXBElement.class, required = false)
protected JAXBElement<Boolean> value;
......
@XmlElementRef那行報錯:The attribute required is undefined for the annotation type XmlElementRef
解決辦法:打開項目 java build path>order and export 將 JRE system library 置頂。錯誤消失
