項目重新部署后報The attribute required is undefined for the annotation type XmlElementRef


在另外一台機器上部署項目,項目導進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 置頂。錯誤消失


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM