title: Spring Post: HTTP/1.1 405 Method Not Allowed
body: <h2>I am using spring rest APIs and getting Http 405 error for all the POST methods.</h2>
  
  <p>I have following POST method,</p>
  
  <pre><code>@RequestMapping(value = "/GetPlanByBasicContext/", method = RequestMethod.POST)
  public @ResponseBody Plan getPlanByBasicContext(@RequestBody BasicPlanContext basicPlanContext) 
  {
    return planService.getPlanByBasicContext(basicPlanContext);
  }
  </code></pre>
  
  <p>I am using fiddler to post the following request,</p>
  
  <p>POST
  <a href="http://localhost:8080/now/Plan/GetPlanByBasicContext" rel="nofollow">http://localhost:8080/now/Plan/GetPlanByBasicContext</a></p>
  
  <pre><code>{ "sourceLocation":"",  
    "destinationLocation":"", 
    "modeOfTransport":"car"
    "budget":"any"
  }
  </code></pre>
  
  <p>Same attributes are present in BasicPlanContext on the server, along with getters and setters.</p>
  
  <p>I have tried other solutions mentioned and nothing has worked.</p>
  
  <p>Note: Security is not configured for spring yet.</p>