表单提交复杂对象

对象里面有还有对象列表,如下的数据结构

 

{
    
    "goodsName": 10,
    "goodsImgList": [
    	{
    		"fileId":258,
    		"fileUrl":"http://gxs-bucket.oss-cn-shanghai.aliyuncs.com/social-test/goods/2019/96/941cfddc643943c384f131b820faf9c7.jpg"
    	},
    	{
    		"fileId":259,
    		"fileUrl":"http://gxs-bucket.oss-cn-shanghai.aliyuncs.com/social-test/goods/2019/96/941cfddc643943c384f131b820faf9c7.jpg"
    	}],
    "marketPrice": 10,
    "realSellPrice": 10,
    "goodsDesc": [
    	{
    		"fileId":258,
    		"fileUrl":"http://gxs-bucket.oss-cn-shanghai.aliyuncs.com/social-test/goods/2019/96/941cfddc643943c384f131b820faf9c7.jpg"
    	},
    	{
    		"fileId":259,
    		"fileUrl":"http://gxs-bucket.oss-cn-shanghai.aliyuncs.com/social-test/goods/2019/96/941cfddc643943c384f131b820faf9c7.jpg"
    	}],
    "commissionRate": 10,
    "skuStock": 10,
    "platform": 10,
    "goodsStatus": 10
}


 

如果用表单提交数据到后台

对象列表需要这样处理

表单提交复杂对象_第1张图片

参考文档:

SpringMVC 复杂对象数据绑定

你可能感兴趣的:(javaWeb)