使用 jdk 1.6 时出现以下错误,但它在 1.7 中工作
cannot find symbol method required() javax.xml.bind.annotation.XmlElementRef
Run Code Online (Sandbox Code Playgroud)
任何的想法?
@XmlElementRef(name = "test", type = JAXBElement.class, required = false)
protected JAXBElement<String> test;
Run Code Online (Sandbox Code Playgroud)