title: Get error "Can not deserialize value of type java.time.LocalDateTime from String" with jackson 310 + Spring boot
body: <p>None of the strings I use in JSON are able to be deserialized into a <code>LocalDateTime</code> with Spring Boot and Jackson 310. I tried all of the following:</p>
  
  <ul>
  <li>2017-05-04T11:28:56.816</li>
  <li>2014-01-01T00:00:00</li>
  <li>2017-09-29 00:00:00</li>
  </ul>
  
  <p>But none work. My DTO is simple and I tried:</p>
  
  <pre><code>@ApiModel
  @Validated
  public class DateRange implements Serializable
  {
      @ApiModelProperty
      @NotNull
      @JsonFormat( shape = JsonFormat.Shape.ANY, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT" )
      protected LocalDateTime start;
  
      @ApiModelProperty
      @NotNull
      @JsonFormat( shape = JsonFormat.Shape.ANY, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT" )
      protected LocalDateTime end;
  
      public DateRange()
      {
      }
  
      public LocalDateTime getStart()
      {
          return start;
      }
  
      public void setStart(LocalDateTime start)
      {
          this.start = start;
      }
  
      public LocalDateTime getEnd()
      {
          return end;
      }
  
      public void setEnd(LocalDateTime end)
      {
          this.end = end;
      }
  
      @Override
      public boolean equals(Object o)
      {
          if ( this == o )
          {
              return true;
          }
          if ( o == null || getClass() != o.getClass() )
          {
              return false;
          }
          DateRange range = ( DateRange ) o;
          return Objects.equals( start, range.start ) &amp;&amp; Objects.equals( end, range.end );
      }
  
      @Override
      public int hashCode()
      {
  
          return Objects.hash( start, end );
      }
  }
  </code></pre>
  
  <p>The JSON I submitted was:</p>
  
  <pre><code>{
      "start": "2017-09-29 00:00:00",
      "end": "2017-09-29  00:00:00"
  }
  </code></pre>
  
  <p>I also tried all the diff versions posted up above in the bulleted list.</p>
  
  <p>What am I doing wrong?</p>