title: Spring don't parse @RequestBody?
body: <p>I got this error. I tried add to properties this code: "spring.jackson.deserialization.accept-single-value-as-array=true" but i can't solve this problem?</p>
  
  <blockquote>
    <p>org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
     at [Source: java.io.PushbackInputStream@2e64d73; line: 1, column: 145] (through reference chain: com.test.mobil.viewmodel.CompanyViewModel ["customerList"])</p>
  </blockquote>
  
  <p><strong>CustomerViewModel</strong></p>
  
  <pre><code>public class CustomerViewModel {
  
  private String name;
  private String surname;
  private int birthDate;
  
  public CustomerViewModel(){}
  
  public CustomerViewModel(String name, String surname, int birthDate) {
      this.name = name;
      this.surname = surname;
      this.birthDate = birthDate;
  }
  }
  </code></pre>
  
  <p><strong>CompanyViewModel</strong></p>
  
  <pre><code>public class CompanyViewModel {
  
  private String company;
  private List&lt;CustomerViewModel&gt; customerList;
  
  public CompanyViewModel(){}
  
  public CompanyViewModel(String company, List&lt;CustomerViewModel&gt; customerList) {
      this.company = company;
      this.customerList = customerList;
  }
  }
  </code></pre>
  
  <p><strong>CustomerController</strong></p>
  
  <pre><code>@Controller
  public class CustomerController {
  
  @PostMapping("/customer")
  public void setCustomer(@RequestBody CompanyViewModel companyViewModel){
      System.out.println(companyViewModel);
  }
  }
  </code></pre>
  
  <p><strong>JSON</strong></p>
  
  <pre><code>page = {
      company: "Facebook",
      customerList = [
          {
              name: "Test1",
              surname: "Test2",
              birthDate: 1987
          },
          {
              name: "Test3",
              surname: "Test4",
              birthDate: 1988
          }
  
      ]
  }
  </code></pre>