Postman以@RequestParam方式传入list的正确方式
@GetMapping("/getCollectByShop")
public void getCollectByShop(@RequestParam("goodsDbidList") List<String> goodsDbidList) throws IOException {
List<GoodsInfoVO> goodsInfoVOList = iProjectPlanPurchaseService.getCollectByShop(goodsDbidList);
ResponseUtil.showMessage("success", "成功", goodsInfoVOList);
}

list元素之间用逗号隔开,以此区分不同元素
[ 版权声明 ]:
本文所有权归作者本人,文中参考的部分已经做了标记!
商业用途转载请联系作者授权!
非商业用途转载,请标明本文链接及出处!

浙公网安备 33010602011771号