-
[error] Error creating bean with name 'jwtTokenProvider': Injection of autowired dependencies failedT-note 2024. 2. 16. 16:31728x90
현재 상황
현재 상황은 github action에서 성공적으로 배포하고, aws code deploy에서 성공적으로 배포를 하여서 ec2에서 스프링을 실행중에 발생하였습니다.
에러문구 위와 같은 에러를 뿜으며, 스프링이 뜨지 않았습니다.
문제 원인
java.lang.IllegalArgumentException: Could not resolve placeholder 'custom.jwt.secret-key' in value "${custom.jwt.secret-key}"
현재 yml 파일에 설정해둔 key 값이 넘겨지지가 않아서 생긴 문제이다.
해결 방법
docker build를 하면서 application.yml이 ec2에 올라가 있지가 않았었습니다...
모두들 이런 에러가 안나온다면 ec2 내부 src에 해당 파일이 있는지 봐보세요!
결과
결과 'T-note' 카테고리의 다른 글
[error] PermittedSubclasses requires ASM9 (0) 2024.02.21 [Tnote] ec2와 route53 도메인 연결하기 (0) 2024.02.20 [code deploy] code deploy중 access denied (2) 2024.02.16 [Tnote] error: variable userRepository not initialized in the default constructor (0) 2024.02.15 [error] build 오류 (0) 2024.02.10