unj*_*nj2 16 java gwt annotations jaxb
我想在我的类中使用JaxB注释,如下所示:
@XmlRootElement
public class ItemExtension implements Serializable {
Run Code Online (Sandbox Code Playgroud)
但当我把它放在客户端时,GWT抱怨.
[ERROR] Line 4: The import javax.xml.bind cannot be resolved
[ERROR] Line 14: XmlRootElement cannot be resolved to a type
Run Code Online (Sandbox Code Playgroud)
有解决方法还是我做错了什么?