How could I ignore a field in json response?

Viewed 9043
@Column(name = "password", nullable = false)
@JSonIgnore
private String password;

I have given the above field in my model class, but It did not work for the POST method.

Error:null value in column "password" violates not-null constraint

4 Answers
Related