package com.tiesheng.demo.pojos; import com.alibaba.fastjson.annotation.JSONField; import java.util.Date; public class JsonTest { private Date now; @JSONField(format = "yyyy-MM-dd") private Date now1; private String no; private String name; private JsonTest child; /////////////////////////////////////////////////////////////////////////// // setter\getter /////////////////////////////////////////////////////////////////////////// public Date getNow() { return now; } public void setNow(Date now) { this.now = now; } public Date getNow1() { return now1; } public void setNow1(Date now1) { this.now1 = now1; } public String getNo() { return no; } public void setNo(String no) { this.no = no; } public String getName() { return name; } public void setName(String name) { this.name = name; } public JsonTest getChild() { return child; } public void setChild(JsonTest child) { this.child = child; } }