bugfix - @Value
@Value("spring.jwt.secret") -> @Value("${spring.jwt.secret}")
This commit is contained in:
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
@Component
|
||||
public class JwtTokenProvider { // JWT 토큰을 생성 및 검증 모듈
|
||||
|
||||
@Value("spring.jwt.secret")
|
||||
@Value("${spring.jwt.secret}")
|
||||
private String secretKey;
|
||||
|
||||
private long tokenValidMilisecond = 1000L * 60 * 60; // 1시간만 토큰 유효
|
||||
|
||||
Reference in New Issue
Block a user