Map JSON array of objects to @RequestBody List using jackson

前端 未结 3 1375
慢半拍i
慢半拍i 2020-12-13 14:36

I\'m having issues using Jackson to map a Javascript posted JSON array of hashes (Tag).


Here is the data received by the controller @RequestBody (It is send wit

3条回答
  •  一个人的身影
    2020-12-13 15:19

    Another way to do this is to rather obtain an array than a List, as follows:

    @RequestBody Tag[] entities
    

提交回复
热议问题