Could not autowire. No beans 'here name' type found

Viewed 12984

Created a class that implements the AuthenticationSuccessHandler and added the @Component daemon to associate it with the Spring Security configuration object. https://zapodaj.net/b3085e4c1cd43.png.html

 @Component
 public class CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandler {..}

IntelliJ shows me a message that

Could not autowire. No beans of 'CustomAuthenticationSuccessHandler' type found

2 Answers
Related