Deserializing json array in Spring MVC controller

后端 未结 3 1153
滥情空心
滥情空心 2021-01-19 14:33

I am sending a list of json object and trying to deserialize it in my Spring controller. But all the time I am getting error of \'Bad request\' and results into a status co

3条回答
  •  一整个雨季
    2021-01-19 14:50

    As @shazin is saying, you've most likely posted a wrong method to your question, or if not, simply make a change that he suggested.

    You'll need another fix, and that is renaming the usersList property from UserWrapper to users so that it matches the JSON property being sent.

    We these fixes, you should not have further problems, since your request is OK.

提交回复
热议问题