I'm using a rest template to call an API in Java, which returns this object :
@JsonIgnoreProperties(ignoreUnknown = true)
@Getter
public class MyObject {
    //@JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime accessTime;
    private String name;
}
The problem is that the accessTime retrieved by the API looks like this :
2020-04-29 12:52:57
And I can't use a LocalDateTimeDeserializer.
This is the following error:
Can not deserialize value of type java.time.LocalDateTime from String \"2020-04-29 12:52:57\": Text '2020-04-29 12:52:57' could not be parsed at index 10
How can I handle this ? Thank you