Skip to content

Commit 0416e7e

Browse files
Update aics-common/src/main/java/kgu/developers/common/auth/jwt/JwtProperties.java
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent d9b11b8 commit 0416e7e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

aics-common/src/main/java/kgu/developers/common/auth/jwt/JwtProperties.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,33 @@ public class JwtProperties {
1616
private String issuer;
1717
private String secretKey;
1818

19+
@Setter
20+
@Getter
21+
@Component
22+
@ConfigurationProperties(prefix = "jwt")
23+
public class JwtProperties {
24+
private String issuer;
25+
private String secretKey;
26+
27+
public JwtProperties() {
28+
}
29+
1930
public JwtProperties(String issuer, String secretKey) {
2031
this.issuer = issuer;
2132
this.secretKey = secretKey;
2233
}
2334
}
35+
```
36+
37+
Option 2 (Lombok-based approach):
38+
```suggestion
39+
@Getter
40+
@Component
41+
@NoArgsConstructor
42+
@AllArgsConstructor
43+
@ConfigurationProperties(prefix = "jwt")
44+
public class JwtProperties {
45+
private String issuer;
46+
private String secretKey;
47+
}
48+
}

0 commit comments

Comments
 (0)