1

Spring Boot を使用してアプリを開発しています。クライアントに戻るときにフィールドを無視したいのですが、1 つのエンドポイントを除きます。

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;

1 つのエンドポイントに対してのみ jwt をクライアントに公開するにはどうすればよいですか? ありがとう

4

1 に答える 1