title: 404 not found error in jQuery AJAX call to Spring controller
body: <p>I am newbie in Spring. I generate the JSON like below:</p>
  
  <pre><code>[
      {
          "customer" : "16", "project" : "19",
          "phase" : "47", "approver" : "5",
          "date1" : "", "date2" : "",
          "date3" : "", "date4" : "",
          "date5" : "", "date6" : "",
          "date7" : "", "activity" : "1"
      },
  
      {
          "customer" : "17", "project" : "20",
          "phase" : "48", "approver" : "3",
          "date1" : "", "date2" : "",
          "date3" : "", "date4" : "",
          "date5" : "", "date6" : "",
          "date7" : "", "activity" : "1"
      }
  ]
  </code></pre>
  
  <p>I am passed this JSON to my Spring controller:</p>
  
  <pre><code>$.ajax({
      type: 'post',
      url: 'NewTimesheet',
      dataType : 'json',
      data: JSON.stringify(jsonObj),
  
      success: function(data) {
          console.log(data);
      }
  });
  </code></pre>
  
  <p>I am mapped the request to controller like below:</p>
  
  <pre><code>@RequestMapping(value="NewTimesheet", headers = { "Content-type=application/json" })
  @ResponseBody
  public String addNewTimesheet(@RequestBody List&lt;Timesheet&gt; timesheet,
      HttpSession session) {
  
      logger.info("timesheet list size is" + timesheet.size());
      return "success";
  }
  </code></pre>
  
  <p><code>Timesheet</code> class:</p>
  
  <pre><code>public class Timesheet {
      private String project;
      private String phase;
      private String approver;
      private String customer;
      private String date1;
      private String date2;
      private String date3;
      private String date4;
      private String date5;
      private String date6;
      private String date7;
      private String activity;
  
      //Getters and setters
  }
  </code></pre>
  
  <p>But my request is not mapped with the conroller. My console displays like below:</p>
  
  <blockquote>
    <p>WARN
    org.springframework.web.servlet.PageNotFound.handleNoSuchRequestHandlingMethod:142
    - No matching handler method found for servlet request: path '/NewTimesheet', method 'POST', parameters
    map['[{"customer":"16","project":"19","phase":"47","approver":"5","date1":"","date2":"","date3":"","date4":"","date5":"","date6":"","date7":"","activity":"1"},{"customer":"17","project":"20","phase":"48","approver":"3","date1":"","date2":"","date3":"","date4":"","date5":"","date6":"","date7":"","activity":"1"}]'
    -> array['']]</p>
  </blockquote>
  
  <p>How to map my JSON to controller? Any help will be greatly appreciated!!!</p>