Deserialize Java 8 LocalDateTime with JacksonMapper

后端 未结 6 1242
孤城傲影
孤城傲影 2020-11-28 09:30

I have read several questions with answers here in SO concerning serialization and deserialization between java.time.LocalDateTime and JSON property but I can\'

6条回答
  •  渐次进展
    2020-11-28 10:20

    This worked for me:

     @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZ", shape = JsonFormat.Shape.STRING)
     private LocalDateTime startDate;
    

提交回复
热议问题