Want to Add @JsonIgnore property on Password in response Json
Try using both @JsonIgnore
and @JsonProperty
in your class like this:
private String password;@JsonIgnorepublic String getPassword() { return password;}@JsonPropertypublic void setPassword(String password) { this.password = password;}