I have read several questions with answers here in SO concerning serialization and deserialization between java.time.LocalDateTime and JSON property but I can\'
java.time.LocalDateTime
You used wrong letter case for year in line:
@JsonFormat(pattern = "YYYY-MM-dd HH:mm")
Should be:
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
With this change everything is working as expected.