title: "Bad Request" when attempting to send array to spring mvc controller
body: <p>I saw related questions and tried those none of those helped. I'm sending POST requst with jquery like this :</p>
  
  <pre><code>var data = {};          
              //this works every time and it's not issue
              var statusArray = $("#status").val().split(',');  
              var testvalue = $("#test").val();
  
                       data.test = testvalue;
              data.status = statusArray ;
  
               $.post("&lt;c:url value="${webappRoot}/save" /&gt;", data, function() {
          })
  </code></pre>
  
  <p>On the controller side I've tried following :</p>
  
  <pre><code>public void saveStatus(ModelMap model, Principal principal, HttpSession session, final HttpServletResponse response, @RequestParam String test, @RequestBody String [] status) {
  
          //I never get to this point, but when I set statusArray to required false test variable is being populated correctly
          }
  
  
  public void saveStatus(ModelMap model, Principal principal, HttpSession session, final HttpServletResponse response, @RequestParam String test, @RequestParam String [] status) {
  
          //I never get to this point, but when I set statusArray to required false test variable is being populated correctly
          }
  
  
  
  public void saveStatus(ModelMap model, Principal principal, HttpSession session, final HttpServletResponse response, @RequestParam String test, @RequestParam("status") String [] status) {
  
          //I never get to this point, but when I set statusArray to required false test variable is being populated correctly
          }
  
  
  public void saveStatus(ModelMap model, Principal principal, HttpSession session, final HttpServletResponse response, @RequestParam String test, @RequestParam(name="status") String [] status) {
  
          //I never get to this point, but when I set statusArray to required false test variable is being populated correctly
          }
  </code></pre>
  
  <p>none of these worked I'm wondering what I'm doing wrong, whatever I do I get <code>Bad request</code></p>