title: How to save many objects in the same request using Spring Boot Data Rest
body: <p>I'm try save a array of an Entity using POST method passing an array for rest resource, but I have an error:</p>
  
  <pre><code>org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Can not deserialize instance of br.com.servtech.almox.model.Item out of START_ARRAY token
   at [Source: org.apache.catalina.connector.CoyoteInputStream@2af1e451; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of br.com.servtech.almox.model.Item out of START_ARRAY token
   at [Source: org.apache.catalina.connector.CoyoteInputStream@2af1e451; line: 1, column: 1]
      at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:228) ~[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readInternal(AbstractJackson2HttpMessageConverter.java:205) ~[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
  </code></pre>
  
  <p>When's I send one object the data, the data is saved very well!</p>
  
  <hr>
  
  <p>My Entity:</p>
  
  <pre><code>@Entity
  public class Item implements Serializable {
  
      private static final long serialVersionUID = 1L;
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      private Long id;
  
      @Basic
      private String name;
  
      @Basic
      private Integer quantity;
  
      @Basic
      private Double cash;
  
      @ManyToOne
      private Requirement requirement;
  
      //getters and setters
  }
  </code></pre>
  
  <p>My Repository:</p>
  
  <pre><code>@RepositoryRestResource
  @CrossOrigin
  public interface ItemDAO extends CrudRepository&lt;Item, Long&gt; {
  
  }
  </code></pre>
  
  <p>The Data:</p>
  
  <pre><code>[{ 
      "name": "A1", 
      "quantity": 3, 
      "cash": 5.80
  }, { 
      "name": "B2", 
      "quantity": 3, 
      "cash": 5.80
  }]
  </code></pre>
  
  <p>I've tried to using the Content-Type application/json and using with text/uri-list.
  What is wrong? I do some more setup?</p>