org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deseri

 org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of `sds.db.dao.User` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `sds.db.dao.User` out of START_ARRAY token
 at [Source: (PushbackInputStream); line: 1, column: 1]

错误原因 是因为请求的参数json格式不对 检查一下 参数是不是数组,传输的值是不是数组。前端传输的数据格式要与spring的参数格式一致才可以 否则报错。

猜你喜欢

转载自blog.csdn.net/ppwwp/article/details/83063175
今日推荐