JSON.stringify(),org.springframework.http.converter.HttpMessageNotReadableException: Could not read
Posted 今天又下下雨
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JSON.stringify(),org.springframework.http.converter.HttpMessageNotReadableException: Could not read 相关的知识,希望对你有一定的参考价值。
1.定义订单实体类
2.定义实体类中集合的实体类
3.在controller中接收
4.前台传递的正确的字段格式(加双引号的)
5.而报错的原因就是因为前台在集合中字段格式没有加双引号而报的这个错误
以上是关于JSON.stringify(),org.springframework.http.converter.HttpMessageNotReadableException: Could not read 的主要内容,如果未能解决你的问题,请参考以下文章
Json.stringify() 有啥用,没有 stringify [重复]
使用fast-json-stringify代替JSON.stringify
JSON.parse()与JSON.stringify()与qs.stringify的区别