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

前端 未结 14 1165
终归单人心
终归单人心 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 11:08

    If none of the above works, try adding

    @XmlRootElement(name="Group") to the Group classs.

提交回复
热议问题