Is it a bug in jackson-datatype-jsr310 deserializer?

后端 未结 1 744
逝去的感伤
逝去的感伤 2021-01-26 03:21

I know that\'s presumptuous to image found a bug in a library used every day by thousands of developpers. So I think the answer to my title question is \"NO !!!\", but ...

相关标签:
1条回答
  • 2021-01-26 03:48

    If I remember correctly, the latest version of the Java driver for mongoDB still use java.util.Date to store dates, so using the Java 8 time api can be a bit of a hassle.

    In one project I work on, I switched from Joda Datetime to the Java 8 time a few months ago. I couldn't get my way around with LocalDateTime, ZonedDateTime and so on, so I decided to go with Instant and it worked fine. Just remember to use the ISO8601 Zulu notation for your dates ("2017-03-31T14:20:28.000Z"), which is already what you're doing apparently.

    0 讨论(0)
提交回复
热议问题