title: Spring Boot JSON Post 400 Error
body: <p>I'm having trouble posting a JSON array to a Spring Boot @RequestMapping Rest controller.  Get 400 Bad Request. Any suggestions how to correct?</p>
  
  <p>JQuery .ajax post</p>
  
  <pre><code>var sData = ["15957.028", "16356.175", "16937.155", "17564.315", "17942.480", "17760.259", "16572.306", "16746.408", "17339.681", "17946.216"] 
  
  $.ajax({
      type: "POST",
      url: "/regression", 
      data: JSON.stringify({"sdata": sData}),
      contentType: 'application/json',
      headers: { 'X-CSRF-Token': token },
      error: function(jqXHR, textStatus, errorThrown) {
            console.log(textStatus, errorThrown, jqXHR.error());
      },
      success: function(){
  
      }
  });
  </code></pre>
  
  <p>@RestController</p>
  
  <pre><code>@RequestMapping(value="/regression", method = RequestMethod.POST)
  public HashMap&lt;String, String&gt; results(@RequestBody List&lt;String&gt; series )  {
  
      HashMap&lt;String, String&gt; results = new HashMap&lt;String, String&gt;();
  
      return results;
  
  }
  </code></pre>
  
  <p>Response Error</p>
  
  <pre><code>responseText: "{"timestamp":1424834682223,"error":"Bad Request","status":400,"message":""}"
  </code></pre>