Why can't I use EEE MMM dd HH:mm:ss Z yyyy
to deserialize Wed Mar 09 14:02:57 +0800 2022
? Is there anything wrong?
I am using Jackson and I added this annotation in my entity class
@JsonFormat(pattern="EEE MMM dd HH:mm:ss Z yyyy")
private Date created_at;
However, I got this error:
Cannot deserialize value of type
java.util.Date
from String "Wed Mar 09 14:02:57 +0800 2022": expected format "EEE MMM dd HH:mm:ss Z yyyy"