트러블슈팅
Could not resolve placeholder 'jwt.secret' in value "${jwt.secret}"
cocodingding
2023. 12. 13. 18:02
Could not resolve placeholder 'jwt.secret' in value "${jwt.secret}"
yml에 경로를 잘 보지 않고 막 적다보니 이런 에러 발생
spring.jwt.secret으로 변경하니 잘 작동한다.
참고로 이 에러와 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig' defined in file [C:\Users\admin\Documents\이승배\sparta\my_blog\out\production\classes\com\example\demo\config\SecurityConfig.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'jwtService': Injection of autowired dependencies failed
즉, 빈 생성 못했다는 에러가 같이 뜬다
이 에러가 먼저 떠서 삽질 조금 했다
에러가 뜨면 전체적으로 다 보자