title: Spring-MVC Jackson not reading the JSON Object from JQuery
body: <p>Using Jackson I can able to convert the object to JSON</p>
  
  <pre><code>@RequestMapping(value="getMessage.test", headers = "Accept=application/json" ,method = RequestMethod.POST)
      public @ResponseBody TestObject getMessage(){
          TestObject object=new TestObject();
          object.setMessage("Hello JQuery");
          return object;
      }
  </code></pre>
  
  <p>The above code works well... But conversion from JSON to Object gives <strong>WARN  PageNotFound - No matching handler method found for servlet request: path '/setMessage.test', method 'POST', parameters map[[empty]]</strong> Below is the code. Where i am going  wrong..</p>
  
  <pre><code>@RequestMapping(value="setMessage.test", method = RequestMethod.POST, headers = "Accept=application/json"  )
      public void setMessage(@RequestBody TestObject test,HttpServletRequest request){
          System.out.println("Inside setting message");
          System.out.println(test.getMessage());
      }
  </code></pre>
  
  <p>JQuery Ajax calls...</p>
  
  <pre><code> $.ajaxSetup({   contentType: "application/json; charset=UTF-8" }); 
  
      $.post('getMessage.test',function(response) {  
          alert(response.message);
             }, 'json');  
  
      $.post( 'setMessage.test', {message: 'Hello Spring'});
  </code></pre>