I wanted to write a small and simple REST service using Spring Boot. Here is the REST service code:
@Async
@RequestMapping(value = \"/getuser\", method = POS
Perhaps you are trying to send a request with JSON text in its body from a Postman client or something similar like this:
{
"userId": 3
}
This cannot be deserialized by Jackson since this is not an Integer (it seems to be, but it isn't). An Integer object from java.lang Integer is a little more complex.
For your Postman request to work, simply put (without curly braces { }):
3