title: Spring MVC REST using @RequestBody List<?> returns HTTP 400 syntactically incorrect
body: <p>I am using Spring 4 + Jackson 2 and have written a fully functional POST method using @RequestBody on a custom class. This method has no trouble unmarshalling the object.</p>
  
  <pre><code>@ResponseBody
  @RequestMapping(value="store", method = RequestMethod.POST)
  public ServiceResponse store(@RequestBody CustomClass list) {
      ...
  }
  
  // Request: { code: "A", amount: 200 }
  </code></pre>
  
  <p>When I attempted to add another method to handle a collection of the same class instead, my POST requests were returning with the following error.</p>
  
  <blockquote>
    <p>HTTP Status 400: The request sent by the client was syntactically incorrect.</p>
  </blockquote>
  
  <p>I note that this error typically occurs when the JSON submitted does not match the entity class. However, all I am doing is submitting an array of the same object instead of the object itself, which has already proven to work.</p>
  
  <pre><code>@ResponseBody
  @RequestMapping(value="store-bulk", method = RequestMethod.POST)
  public ServiceResponse storeBulk(@RequestBody List&lt;CustomClass&gt; list) {
      ...
  }
  
  // Request: [{ code: "A", amount: 200 }, { code: "B", amount: 400 }]
  </code></pre>
  
  <p>Am I missing something here?</p>