我有这样的课:
public class Profile {
private String firstName;
private String lastName;
private String nickName;
@JsonIgnore
private boolean isNameSecret;
}
序列化对象时可以隐藏属性firstName,lastName如果isNameSecret值为true?
SMILET
慕容森
相关分类