bugfix - @Value

@Value("spring.jwt.secret") -> @Value("${spring.jwt.secret}")
This commit is contained in:
kimyonghwa
2019-04-22 14:48:28 +09:00
parent ec7931d807
commit 0226f99edc

View File

@@ -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시간만 토큰 유효