首页 > Web开发 > 详细

Web Service 问题点总结

时间:2017-12-21 11:40:45      阅读:641      评论:0      收藏:0      [点我收藏+]
调用的时候

org.springframework.web.client.HttpClientErrorException: 404 Not Found

原因1:mediaTypeError(ContentType)

原因2:server端出现错误(json的key不能为null)


com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token

bean 不能被反序列化


Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

ACCEPT_SINGLE_VALUE_AS_ARRAY设定


com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token


org.springframework.web.client.HttpClientErrorException: 406 Not Acceptable

jackson-core、jackson-databind、mediaType不一致(ContentType)



Web Service 问题点总结

原文:http://blog.51cto.com/xinzhilian/2052814

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!