title: Spring mvc and jquery produces 415 error
body: <p>I have following jquery</p>
  
  <pre><code>&lt;script&gt;
  var response = '';
  $.ajax({ type: "POST",   
       url: "http://localhost:8080/hsv06/checkUserExists",   
       async: false,
       data: "title=foo",
       success : function(text)
       {
           response = text;
       }
  });
  
  console.log(response);
  &lt;/script&gt; 
  </code></pre>
  
  <p>And here is the rest controller:</p>
  
  <pre><code>@RequestMapping(value="/checkUserExists", method=RequestMethod.POST, consumes="application/json")
  public @ResponseBody boolean checkUser(@RequestBody Object title){
      System.out.println(title);
      return true;        
  }
  </code></pre>
  
  <p>However this produces the following error:</p>
  
  <pre><code>POST http://localhost:8080/hsv06/checkUserExists 415 (Unsupported Media Type)
   send @ jquery.min.js:2
  ajax @ jquery.min.js:2
  (anonymous) @ (index):57
  </code></pre>
  
  <p>What is the problem? What is wrong with the way I am sending the data? </p>