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
- 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. - 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.