User
List
@JsonIgnore
作用是json序列化时将java bean中的一些属性忽略掉~public class User {
@JsonIgnore
private List<String> hobby;
@JsonFormat
格式化日期public class User {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date birthday;