标签: java json jackson
我如何将时间戳格式化为带有小时偏移的json,如下所示
"fromDate": "2021-03-28T19:42:25-0700"
会是什么 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")