Spring MVC: Doesn't deserialize JSON request body

前端 未结 6 1440
忘掉有多难
忘掉有多难 2020-12-02 09:28

I\'m working on a Spring MVC project and one of the tasks I need to do requires me to have a string of JSON data sent through by the user in a POST request. I know that Spri

6条回答
  •  余生分开走
    2020-12-02 09:46

    You could try avoiding @RequestBody altogether and instead grab the request body directly through a InputStream/Reader or a WebRequest/HttpServletRequest.

提交回复
热议问题