HttpMessageNotReadableException(一)

时间:2018-08-22 23:14:01   收藏:0   阅读:2666

1、今天移动端调用接口时候出现下面异常

org.springframework.http.converter.HttpMessageNotReadableException:

JSON parse error: Unrecognized token ‘name‘: was expecting (‘true‘, ‘false‘ or ‘null‘);

nested exception is com.fasterxml.jackson.core.JsonParseException:

Unrecognized token ‘name‘: was expecting (‘true‘, ‘false‘ or ‘null‘)

2、原因:

接口中要求json形式,name是String类型

前端传值为的是表单类型,出现了上面的错误

原文:https://www.cnblogs.com/shuaiandjun/p/9520844.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!