File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
aics-common/src/main/java/kgu/developers/common/auth/jwt Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,33 @@ public class JwtProperties {
16
16
private String issuer ;
17
17
private String secretKey ;
18
18
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
+
19
30
public JwtProperties (String issuer , String secretKey ) {
20
31
this .issuer = issuer ;
21
32
this .secretKey = secretKey ;
22
33
}
23
34
}
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
+ }
You can’t perform that action at this time.
0 commit comments