title: SpringRest - no matching handler method found for servlet request
body: <p>No matching handler method found for servlet request: path '/test/add', method 'POST'....</p>
  
  <pre><code>@Controller
  @RequestMapping(value = "/test")
   public class TestController {
  
  @RequestMapping(value = "/add", method = RequestMethod.POST, headers = { "Accept=application/json",
          "Content-Type=application/json" })
  public @ResponseBody String create(@RequestBody String body) {
      .....
  }}
  </code></pre>
  
  <p>configuration :</p>
  
  <pre><code> &lt;servlet&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>Any Suggestions?</p>