Skip to content
Advertisement

Field jwtTokenProvider in security.JwtAuthenticationFilter required a bean of type ‘security.JwtTokenProvider’ that could not be found

I’m new to Springboot and i hope you can help me. I’m doing a back application in SpringBoot for a react native app and i’m stuck. I want to secure my app with a jwt but when i try to launch my application i have this message andi don’t understand why i got this.

JavaScript

JwtTokenProvider Class

JavaScript

and JwtAuthenticationFilter Class

JavaScript

I hope to read from you soon

Advertisement

Answer

In which package is your application class? (annotated with @SpringBootApplication)?

Spring boot will normally only search for @Component in the same package or any of its sub-packages.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement