javax.xml.bind.UnmarshalException: unexpected element (uri:“”, local:“Group”)

前端 未结 14 1166
终归单人心
终归单人心 2020-12-02 10:13
unexpected element (uri:\"\", local:\"Group\"). Expected elements are <{}group>

Meet an exception when unmarshalling from xml



        
14条回答
  •  情歌与酒
    2020-12-02 10:51

    Same to me. The name of the mapping class was Mbean but the tag root name was mbean so I had to add the annotation:

    @XmlRootElement(name="mbean")
    public class MBean { ... }
    

提交回复
热议问题