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