[Spring] org.springframework.beans.factory.UnsatisfiedDependencyException

ggggraceful·2022년 11월 14일
0

Trouble Shooting

목록 보기
4/4
post-thumbnail

에러발생!

org.springframework.beans.factory.UnsatisfiedDependencyException
: Error creating bean with name 'webSecurityConfig' defined in file [/Users/namgung-eun/Desktop/CODING/comparison/Sherlock_Back/build/classes/java/main/com/example/sherlockescape/config/WebSecurityConfig.class]
: Unsatisfied dependency expressed through constructor parameter 0; 

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtUtil'
: Injection of autowired dependencies failed; 

nested exception is java.lang.IllegalArgumentException
: Could not resolve placeholder 'jwt.secret.key' in value ![](https://velog.velcdn.com/images/ggggraceful/post/c6b1715b-49a4-4c83-bd26-3eea70cb8481/image.png)
"${jwt.secret.key}"

롬복도 잘 빌드 되어 있었고,

어노테이션도 잘 작성했고...
업로드중..

해결

알고보니 application.yml 파일이 없어서 그런것이었다.
다시 추가해주고 실행시켜보니 정상 작동하였다 ㅎㅎ

profile
신입 백엔드개발자 (Java / Spring)

0개의 댓글