The problem of springmvc receiving list

    @RequestMapping("poster/add")
    @ResponseBody
    public ResultVo addPoster(Long categoryKey, Long typeId, String typeValue, @RequestBody List<ActivityPosterImageVo> imgList, HttpServletRequest request,
                              HttpServletResponse response){
     dosomething()
    }

data transfer at the foreground

{categoryKey: 1, typeId: "1", typeValue: "", imgList: [{imgId: "87",}]}

Why 400 (Bad Request) is displayed

Mar.01,2021

400: the syntax format is incorrect and the server cannot understand this request.
how is the foreground request written?


 

may be the problem mentioned by ccfish

it is recommended that you download a postman, here and then send the request through postman. For questions like this, it is best to take a picture of the method and data of the request

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32f6c-4d4f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32f6c-4d4f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?