I am developing app using spring boot and I just want to ignore a field while returning to the client but except one endpoint.
public class MyJwt {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Lob
@JsonIgnore
private String jwt;
private String reminderKey;
private String userAccountId;
private String clientKey;
private Timestamp createdDate;
private Timestamp expirationDate;
private byte statusCode;
How can I expose jwt to the client only for one endpoint? Thanks