// @DateTimeFormat(pattern="yyyy-MM-dd kk:mm:ss")
//@JsonSerialize(using=JsonDateSerializer.class)
//@Temporal(value = TemporalType.TIMESTAMP)
// @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
public Date getCreateTime() {
return this.createTime;
}
通过注解格式化 时间
原文:http://blog.csdn.net/frykool/article/details/41673853