title: Request param list of long
body: <p>eventIdsToDelete    ["24616342","24615878"]I am trying to send list of Long values to the Spring controller but I am getting 400 Bad Request error. So I am guessing my request mapping signature is incorrect.</p>
  
  <p>My jQuery AJAX call</p>
  
  <pre><code>var myList = [24616342,24616201,24616310];
  $.ajax({
    url: '/myApp/path/toController',
    type: 'POST',
    data: {myList: JSON.stringify(myList)},
    success: function(response) { ... }
  }); 
  </code></pre>
  
  <p>My request mapping</p>
  
  <pre><code>@RequestMapping(value = "/myApp/path/toController", method = RequestMethod.POST)
  public @ResponseBody boolean doSomething(Model model, @RequestParam List&lt;Long&gt; myList)   
  {
      System.out.println(myList);
      return true;
  }
  </code></pre>
  
  <p>In firebug console I am seeing URL being called but in post tab I am seeing parameters as</p>
  
  <pre><code>myList ["24616342","24615878"]
  </code></pre>
  
  <p>I tried by changing request mapping parameter to </p>
  
  <pre><code>List&lt;String&gt; 
  </code></pre>
  
  <p>and it working fine. But I want to have request mapping method type be String.</p>