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 had the same problem and I resolved it.
1 add MappingJackson2HttpMessageConverter as described in that thread (see also section 4 http://www.baeldung.com/spring-httpmessageconverter-rest)
2 use correct command (with escape symbols):
curl -i -X POST -H "Content-Type:application/json" -d "{\"id\":\"id1\",\"password\":\"password1\"}" http://localhost:8080/user