1、javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"request").
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"request"). Expected elements are <{}callAuthen>,<{}employee>,<{}employees>,<{}xml>...
springmcv 如果Rest接口,发送xml数据请求的时候。出现上述错误;
解决方式:
错误提示:提交的数据xml根节点是<request>。可是程序仅仅解析<{}callAuthen>,<{}employee>,<{}employees>,<{}xml>。所以检查请求根节点,改动就可以。