title: @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") not working as expected
body: <p>My application is failing to format date input. I am using com.fasterxml.jackson.annotation.JsonFormat</p>
  
  <p>Json Input:</p>
  
  <pre><code>"startDate": "2019-08-07"
  </code></pre>
  
  <p>Member variable defined in my class:</p>
  
  <pre><code>@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") 
  private LocalDate startDate;
  </code></pre>
  
  <p>Dependencies:</p>
  
  <pre><code>    compile('com.fasterxml.jackson.core:jackson-annotations:2.10.0')
      compile('com.fasterxml.jackson.core:jackson-databind:2.10.0')
      compile('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.0')
  </code></pre>
  
  <p>Exception seen:</p>
  
  <pre><code>Field error in object 'searchCriteriaDTO' on field 'startDate': rejected value [2019-08-07]; codes [typeMismatch.searchCriteriaDTO.startDate,typeMismatch.startDate,typeMismatch.java.time.LocalDate,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [searchCriteriaDTO.startDate,startDate]; arguments []; default message [startDate]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.time.LocalDate' for property 'startDate'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@com.fasterxml.jackson.annotation.JsonFormat java.time.LocalDate] for value '2019-08-07'; nested exception is java.lang.IllegalArgumentException: Parse attempt failed for value [2019-08-07]]
  </code></pre>
  
  <p>Has anyone experienced this issue before? Any help is appreciated.</p>