ali-bouali/book-social-network

"UnsatisfiedDependencyException", "BeanCreationException" for jwtFilter, jwtServices and IllegalArgumentException for 'application.security.jwt.secret-key' in value "${application.security.jwt.secret-key}"

Opened this issue · 0 comments

I'm encountering the following errors even though I followed all the code from the tutorial.

C_aused by: org.springframework.beans.factory.UnsatisfiedDependencyException:_ Error creating bean with name 'jwtFilter'

Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'jwtService': Injection of autowired dependencies failed

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtService': Injection of autowired dependencies failed

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'application.security.jwt.secret-key' in value "${application.security.jwt.secret-key}"