JSON.stringify(),org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token(前台向后台传递list)

时间:2018-05-21 11:51:41   收藏:0   阅读:3383

1.定义订单实体类

技术分享图片

2.定义实体类中集合的实体类

技术分享图片

3.在controller中接收

技术分享图片

4.前台传递的正确的字段格式(加双引号的)

技术分享图片

5.而报错的原因就是因为前台在集合中字段格式没有加双引号而报的这个错误

技术分享图片

 

原文:https://www.cnblogs.com/JerryTomcat/p/9065962.html

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