title: Spring boot + Jackson + LocalDateTime: Date not parsed correctly
body: <p>I have a LocalDateTime property in my entity class, but when it's serialized, I don't see the expected format.</p>
  
  <p>This is the class:</p>
  
  <pre><code>public class MyEntity {
  
       private Integer id;
       @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
       private LocalDateTime changeDate;
  
       // getters and setters
  
  }
  </code></pre>
  
  <p>This is how jackson is formatting it:</p>
  
  <pre><code>{
      "id": 56, 
      "changeDate": {
          "hour":14, "minute":19, 
          "nano":797000000, 
          "second":7, 
          "dayOfMonth":24, 
          "dayOfWeek":"TUESDAY", 
          "dayOfYear":297, "month":"OCTOBER", 
          "monthValue":10, 
          "year":2017,
          "chronology": { 
               "id":"ISO",
               "calendarType":"iso8601"
          }
      }
  }
  </code></pre>
  
  <p>Note that I added the following dependency to my pom:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.datatype&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-datatype-jsr310&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I don't include the version because spring boot takes care of that.
  By the way I'm using spring boot 1.5.2.RELEASE.</p>
  
  <p>I also included the following property in application.properties:</p>
  
  <pre><code>spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS = false
  </code></pre>
  
  <p>Any idea why the date is not formatted with like that instead of using the pattern I provided?</p>