0
我想使用簡單的XML來解釋一個XML文件。我在012or之前必須添加@Attribute
,但我做不到。如何在eclipse上添加@Atribute(來自Simple XML)偏移量?
Eclipse的告訴我:"Attribute cannot be resolved to a type"
如何添加這些anotations?
我想使用簡單的XML來解釋一個XML文件。我在012or之前必須添加@Attribute
,但我做不到。如何在eclipse上添加@Atribute(來自Simple XML)偏移量?
Eclipse的告訴我:"Attribute cannot be resolved to a type"
如何添加這些anotations?
在我看來,唯一的可能性就是你沒有正確導入包,具體你需要:
進口org.simpleframework.xml.Attribute;
還有一些其他(不尋常的)併發症在這裏討論Stack overflow 1910694