I\'m creating a REST API that will accept JSON requests.
I\'m testing it out using CURL:
curl -i -POST -H \'Accept: application/json\' -d \'{\"id\":1
I experienced once and finally solved it by adding the jar file jackson-mapper-asl.jar. Go check if you have included all these dependencies although the exception itself does not tell u that.
And you really don't need to explicitly configure the bean, and you don't need to put "consumes" in @RequestMapping statement. I'm using Spring 3.1 btw.
contentType : "application/json" is the only one you need to configure. yes, client side.