List<myObject> mismatch in save method
<p>I wrote a save method that will accept the list of objects from UI side. I was getting bad request error (400) when i tried to send a field name myObjects from UI.</p>

<p>I my product bean myObjects is a type of</p>

<pre><code>List&lt;myObject&gt; myObjects ;
</code></pre>

<p>from UI i am sending myObjects in below form-</p>

<pre><code>myObjects: Array[1]
      0: Object
         critical: "TRUE"
         id: "12"
         Envelope: "TRUE"
         pageCount: "12"
         paperStock: "ss"
         quantity: "12"
         type: "PRODUCT"
  __proto__: Object
   length: 1
</code></pre>

<p>My save method-</p>

<pre><code>@RequestMapping(value = "/config/product", method = RequestMethod.POST)
public ResponseEntity&lt;String&gt; saveProduct(@RequestBody final Product product)
{
    something---
    ResponseEntity&lt;String&gt; returnValue;
    returnValue = productService.saveProduct(product);   
}
</code></pre>

<p>I was getting an ajax error in chrome console itself. Request is not itself going to my controller.</p>

<pre><code>POST http://localhost:8000/myportal/app/config/product 400 (Bad Request)
</code></pre>

<p>What is wrong in that? any suggestion?</p>