参考文档
http://blog.csdn.net/pinebud55/article/details/51454997
//对象的定义中添加注解
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date crtdate;
public class user {
private String name;
@JsonIgnore
private int age;
}
网友评论