Skip to content
Advertisement

Bean that could not be found Spring Boot

I have a problem when trying to start my Spring Boot application with tokenization. This is my service class:

JavaScript

This is my config class:

JavaScript

And I get the following error when I try to run my Application:

JavaScript

I dont understand why i get this error.

Advertisement

Answer

I solved it. The problem was that the package where the config lays was not scanned by my spring boot application. In my @SpringBootApplication I added @ComponentScan with the package where JwtConfig lays.

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