Cannot deserialize value of type `java.util.Date` from String

We Are Going To Discuss About Cannot deserialize value of type `java.util.Date` from String. So lets Start this Java Article.

Cannot deserialize value of type `java.util.Date` from String

  1. Cannot deserialize value of type `java.util.Date` from String

    Change your @JsonFormat line to this.
    @JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
    The format pattern you have right now expects the sting to have millisecond values – but your example string doesn't have them.

  2. Cannot deserialize value of type `java.util.Date` from String

    Change your @JsonFormat line to this.
    @JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
    The format pattern you have right now expects the sting to have millisecond values – but your example string doesn't have them.

Solution 1

Change your @JsonFormat line to this.

@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")

The format pattern you have right now expects the sting to have millisecond values – but your example string doesn’t have them.

Original Author mkhanoyan Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment