使用SpringMVC接收前端参数问题
2021-01-21 18:13
标签:cti ges upd ring weight 前端 升级 webp status 后台有Goods对象接收前台参数: 前端json写法: 注意:spu和skus的名称要与后台封装的GOODS对象里面的属性名称一致。不然使用springMVC无法自动对象 使用SpringMVC接收前端参数问题 标签:cti ges upd ring weight 前端 升级 webp status 原文地址:https://www.cnblogs.com/lmjsdoit/p/12895093.html{
"spu": {
"id": "1",
"sn": "",
"name": "巴布豆(BOBDOG)柔薄悦动婴儿拉拉裤XXL码80片(15kg以上)",
"caption": "纤薄升级,透气不闷,舒适大环腰,宝宝随心动更多优惠猛戳",
"brandId": 3834,
"category1Id": 1099,
"category2Id": 1117,
"category3Id": 1124,
"templateId": 43,
"freightId": 0,
"image": "https://m.360buyimg.com/mobilecms/s450x450_jfs/t23998/350/2363990466/222391/a6e9581d/5b7cba5bN0c18fb4f.jpg!q70.jpg.webp",
"images": "https://m.360buyimg.com/mobilecms/s450x450_jfs/t23998/350/2363990466/222391/a6e9581d/5b7cba5bN0c18fb4f.jpg!q70.jpg.webp",
"saleService": "",
"introduction": "
",
"specItems": "{\"规格\":[\"88片\",\"80片\",\"104片\",\"96片\"]}",
"paraItems": "",
"saleNum": 0,
"commentNum": 0,
"isMarketable": "1",
"isEnableSpec": "1",
"isDelete": "0",
"status": "1"
},
"skus":[
{
"id": "1",
"sn": "",
"name": "vivo X23 8GB+128GB 幻夜蓝 水滴屏全面屏 游戏手机 移动联通电信全网通4G手机",
"price": 95900,
"num": 9980,
"alertNum": 100,
"image": "https://m.360buyimg.com/mobilecms/s720x720_jfs/t1/4612/28/6223/298257/5ba22d66Ef665222f/d97ed0b25cbe8c6e.jpg!q70.jpg.webp",
"images": "https://m.360buyimg.com/mobilecms/s720x720_jfs/t1/4612/28/6223/298257/5ba22d66Ef665222f/d97ed0b25cbe8c6e.jpg!q70.jpg.webp",
"weight": 10,
"createTime": "2019-05-01T00:00:00.000+0000",
"updateTime": "2019-05-01T00:00:00.000+0000",
"spuId": "889527500",
"categoryId": 0,
"categoryName": "手机",
"brandName": "vivo",
"spec": "{‘颜色‘: ‘红色‘, ‘版本‘: ‘8GB+128GB‘}",
"saleNum": 0,
"commentNum": 0,
"status": "1"
},
{
"id": "2",
"sn": "",
"name": "vivo X23 8GB+128GB 幻夜蓝 水滴屏全面屏 游戏手机 移动联通电信全网通4G手机",
"price": 95900,
"num": 9980,
"alertNum": 100,
"image": "https://m.360buyimg.com/mobilecms/s720x720_jfs/t1/4612/28/6223/298257/5ba22d66Ef665222f/d97ed0b25cbe8c6e.jpg!q70.jpg.webp",
"images": "https://m.360buyimg.com/mobilecms/s720x720_jfs/t1/4612/28/6223/298257/5ba22d66Ef665222f/d97ed0b25cbe8c6e.jpg!q70.jpg.webp",
"weight": 10,
"createTime": "2019-05-01T00:00:00.000+0000",
"updateTime": "2019-05-01T00:00:00.000+0000",
"spuId": "889527500",
"categoryId": 0,
"categoryName": "手机",
"brandName": "vivo",
"spec": "{‘颜色‘: ‘红色‘, ‘版本‘: ‘8GB+128GB‘}",
"saleNum": 0,
"commentNum": 0,
"status": "1"
}
]
}
文章标题:使用SpringMVC接收前端参数问题
文章链接:http://soscw.com/index.php/essay/45080.html