java - Date format Mapping to JSON Jackson - Stack Overflow
Since Jackson v2.0, you can use @JsonFormat annotation directly on Object members :
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm a z") private Date date;
Read full article from java - Date format Mapping to JSON Jackson - Stack Overflow
No comments:
Post a Comment