title: Java 8 LocalDate Jackson format
body: <p>For <strong>java.util.Date</strong> when I do  </p>
  
  <pre><code>@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd/MM/yyyy")  
    private Date dateOfBirth;
  </code></pre>
  
  <p>then in JSON request when I send   </p>
  
  <pre><code>{ {"dateOfBirth":"01/01/2000"} }  
  </code></pre>
  
  <p>it works.</p>
  
  <p>How should I do this for <strong>Java 8's LocalDate</strong> field??</p>
  
  <p>I tried having   </p>
  
  <pre><code>@JsonDeserialize(using = LocalDateDeserializer.class)  
  @JsonSerialize(using = LocalDateSerializer.class)  
  private LocalDate dateOfBirth;  
  </code></pre>
  
  <p>It didn't work.</p>
  
  <p>Can someone please let me know what's the right way to do this..  </p>
  
  <p>Below are dependencies</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
      &lt;artifactId&gt;jaxrs-api&lt;/artifactId&gt;
       &lt;version&gt;3.0.9.Final&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.fasterxml.jackson.jaxrs&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-jaxrs-json-provider&lt;/artifactId&gt;
      &lt;version&gt;2.4.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.wordnik&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
      &lt;version&gt;1.3.10&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>