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元素之間用逗號隔開,以此區分不同元素


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM