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元素之间用逗号隔开,以此区分不同元素

posted @ 2020-10-21 22:55  CEO雷总  阅读(17415)  评论(3)    收藏  举报