Skip to content

Commit

Permalink
fix: @builder 사용시 초기화 된 final 속성은 객체 생성시 포함되지 않아, 초기화 된 속성에 @Builder.…
Browse files Browse the repository at this point in the history
…Default 추가 (#35)
  • Loading branch information
mybloom committed Jun 11, 2022
1 parent 6b9852c commit e52b394
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BE/src/main/java/org/team4/airbnb/auth/domain/JwtPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
public class JwtPayload {

//registered claim
@Builder.Default
private final String subject = "team4Airbnb";
private final Date issuedAt;
private final Date expiration;

//public claim
@Builder.Default
private final String publicClaim = "http://org.team4.airbnb";

//private claim
Expand Down

0 comments on commit e52b394

Please sign in to comment.