//There are milliseconds in the input string, so your format should be
//“yyyy-MM-dd’T’HH:mm:ss.SSS”
//Update: If the millisecond part consists of 1, 2, 3 digits or is optional,
//you may use the following format:
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss[.SSS][.SS][.S]")
private LocalDateTime updatedTime;
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss[.SSS][.SS][.S]")
private LocalDateTime updatedTime;
// Can you please post the string you are trying to serialize?
// If you have Date Format string, you might want to check if the expected long/short format
// of the input alings with the Date Format string