post JSON data from Curl
Really very useful tip.
To post JSON format data in
CURL from termial, you need to specify header parameter
-H "Content-Type: application/json".
Springmvc would reject this request body if
JSON header not specified.
Also note that, you could use
-X GET option to indicate using
GET method at the meantime of using
-d option, which might originally treat as a way of
-d option just indicate the data within it need to be treat as