{"pid": 114,"name": "KTY81/8886","parentcate": "時科SHIKUES","desc": "温度传感器","num": 5,"img": "/static/images/img-sksp-sp@2x.png","nowprice": 0.49},{"pid": 114,"name": "KTY81/8886","parentcate": "時科SHIKUES","desc": "温度传感器","num": 5,"img": "/static/images/img-sksp-sp@2x.png","nowprice": 0.49}]![](https://img2018.cnblogs.com/q/912080/201908/912080-20190828112544610-851101764.png)
后台模型:
发现这样传入,并不能接收到值求大佬指点
如果你使用的是默认的参数绑定,FromBody必须是这样传:
呃,我就传了个模型,然后模型goods字段里面又有一个集合,我最外面那层是已经获取到值的,但是goods我却没有解析到,是个空的对象
@baicexxqtd: 不能已键值对的方式传,你需要把整个对象json传