码迷,mamicode.com
首页 > 编程语言 > 详细

SpringMVC 常见异常处理

时间:2015-06-02 13:29:18      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:springmvc   xml   rest   

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>,所以检查请求根节点,修改即可。

SpringMVC 常见异常处理

标签:springmvc   xml   rest   

原文地址:http://blog.csdn.net/cluolin/article/details/46326839

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!