title: 400 Bad Request!! when I try to send ajax request to Servlet in spring mvc
body: <pre><code>/*ajax request to servlet to perform update operation*/
  var savedata={
                video_Title:videotitle, 
                video_duration:videoduration,
                video_Url:videourl,
                video_Description:videodescription
  
      };
           $.ajax({
             url:'videoUpdate',  
             type:'POST',  
             cache:false,
             data: savedata,
             contentType: "application/json; charset=utf-8",
             success: function(response) {
                alert("Updated Successfully");
          },
          error:function()
          {
          alert("oops sorry something went wrong. we apologize for the inconvenience");
          }   
          });
  
  
  
  /*Controller Class*/
  
  @RequestMapping(value ="videoUpdate",method =  RequestMethod.POST,consumes=MediaType.APPLICATION_JSON_VALUE)
      public @ResponseBody Status updateVideo(@RequestBody Video video) {
  
          try {
  
              System.out.println("update  servlet");
              dataServices.updateVideo(video);
              return new Status(1,"video updated Successfully");
          } 
          catch (Exception e) {
          return new Status(0,e.getMessage().toString());
          }
  }
  </code></pre>
  
  <p>My question is how to receive ajax-json request data in my servlet class.Is this is the correct way to catch a set of data from ajax in spring mvc.Or other annotation is required for avoiding 400 error!?</p>