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>,所以检查请求根节点,修改即可。
原文地址:http://blog.csdn.net/cluolin/article/details/46326839