I am having a JSON data as shown below: I need a query to be executed and should be in the below form I am using Spring MVC for processing this and the code I wrote is as follows. It is not complete. It would be very much helpful if someone could help me out here. Thanks in advance. Answer
Tag: spring-mvc
I/O error while reading input message; nested exception is java.io.IOException: Stream closed
This is my controller: This is the error I get: “message”: “I/O error while reading input message; nested exception is java.io.IOException: Stream closed” Answer Your error is the result of @RequestBody being used twice in your controller method arguments. Following line causes the issue: You cannot use it this way as only one @RequestBody per method is allowed. Using @RequestBody