@JsonIgnoreProperties 作用在類上用于過濾掉特定字段不返回或者不解析
//生成json時(shí)將userRoles屬性過濾@JsonIgnoreProperties({"userRoles"})public class User { ? ?private String userName; ? ?private String fullName;
?