Spring 4.x/3.x (Web MVC) REST API and JSON2 Post requests, how to get it right once for all?
CURL Post call curl -i -H “Content-Type: application/json” -X POST -d ‘{“id”:100,”username”:”JohnBlog”,”name”:”John”,”lastName”:”Blog”,”email”:”[email protected]”}’ http://localhost:8080/[YOURWEBAPP]/api/user/add Different Error Scenarios: Here I explore different errors you might come across after you have made a curl call and what might have possibly gone wrong. Scenario One: HTTP/1.1 404 Not Found Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 949 Date: Tue, 04 Jun … Read more