title: Spring Boot LocalDate field serialization and deserialization
body: <p>In Spring Boot 1.2.3.RELEASE with fasterxml what is the correct way of serializing and de-serializing a <code>LocalDate</code> field to ISO date formatted string?</p>
  <p>I've tried:</p>
  <ul>
  <li><p><code>spring.jackson.serialization.write-dates-as-timestamps:false</code> in application.properties file,</p>
  </li>
  <li><p>including <a href="https://github.com/FasterXML/jackson-datatype-jsr310" rel="noreferrer">jackson-datatype-jsr310</a> in project and then using</p>
  <ul>
  <li><p><code>@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = &quot;yyyy-MM-dd&quot;)</code> annotation</p>
  </li>
  <li><p>and <code>@DateTimeFormat(iso=ISO.DATE)</code> annotation,</p>
  </li>
  </ul>
  </li>
  <li><p>adding <code>Jsr310DateTimeFormatAnnotationFormatterFactory</code> as formatter with:</p>
  <pre><code>@Override
  public void addFormatters(FormatterRegistry registry) {
      registry.addFormatterForFieldAnnotation(new Jsr310DateTimeFormatAnnotationFormatterFactory());
  }
  </code></pre>
  </li>
  </ul>
  <p>None of the above helped.</p>