Json中Date映射到model

@DateTimeFormat(pattern="yyyy-MM-dd")
    private Date nenddate;

public Date getNenddate() {
        return nenddate;
    }

    public void setNenddate(Date nenddate) {
        this.nenddate = nenddate;
    }
只要设置
@DateTimeFormat(pattern="yyyy-MM-dd")
原文地址:https://www.cnblogs.com/hanjun0612/p/9779727.html