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)

1.定义订单实体类

技术分享图片

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

技术分享图片

3.在controller中接收

技术分享图片

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

技术分享图片

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

技术分享图片

 

文章来自:https://www.cnblogs.com/JerryTomcat/p/9065962.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3