Wednesday, September 5, 2012

WARN (DefaultHandlerExceptionResolver.java:183) - Request method 'POST' not supported. For Spring REST


When Spring RESTful web service post call are throwing following exception, then we need to check 'Content-type' is set in the header/request.

set the content-type in the testing client like SoapUI.
if the REST controller request/response of 'json' then set the content-type as
"Content-Type" : "application/json"
in the request headers.
Reactions: