title: Cannot deserialize value of type `java.time.Instant` - jackson
body: <p>Having class like this</p>
  
  <pre><code>@AllArgsConstructor
  @NoArgsConstructor
  @Getter
  @Setter
  public final class ActiveRecoveryProcess {
  
      private UUID recoveryId;
      private Instant startedAt;
  }
  </code></pre>
  
  <p>I'm getting <code>com.fasterxml.jackson.databind.exc.InvalidFormatException</code> with message <code>Cannot deserialize value of type</code>java.time.Instant<code>from String "2020-02-22T16:37:23": Failed to deserialize java.time.Instant: (java.time.format.DateTimeParseException) Text '2020-02-22T16:37:23' could not be parsed at index 19</code></p>
  
  <p>JSON input</p>
  
  <pre><code>{"startedAt": "2020-02-22T16:37:23", "recoveryId": "6f6ee3e5-51c7-496a-b845-1c647a64021e"}
  </code></pre>
  
  <p>Jackson configuration</p>
  
  <pre><code>    @Autowired
      void configureObjectMapper(final ObjectMapper mapper) {
          mapper.registerModule(new ParameterNamesModule())
                  .registerModule(new Jdk8Module())
                  .registerModule(new JavaTimeModule());
          mapper.findAndRegisterModules();
      }
  </code></pre>
  
  <p>EDIT</p>
  
  <p>JSON is generated from postgres</p>
  
  <pre><code>jsonb_build_object(
                          'recoveryId', r.recovery_id,
                          'startedAt', r.started_at
  )
  </code></pre>
  
  <p>where <code>r.started_at</code> is TIMESTAMP.</p>