jackjson 注解@JsonFormat(pattern = "yyyy-MM-dd") 'bug'

@JsonFormat(pattern = "yyyy-MM-dd")
private Date createDate = DateUtil.parseFormat("yyyy-MM-dd");


该注解如果把Date值设为2014-03-14 00:00:00,序列化出来的是2014-03-13,我晕..

猜你喜欢

转载自rguess.iteye.com/blog/2031410