1:
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
2:时间格式
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat df = new SimpleDateFormat("yyMMdd");
1:
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
2:时间格式
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat df = new SimpleDateFormat("yyMMdd");