Posts

Showing posts with the label org.springframework.beans.factory.NoSuchBeanDefinitionException

How to resolve 'org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ...' - using stereotype Annotations and using @Configuration, @Bean Annotation

Image
"At the end of the day, it doesn't really matter whether you use XML, annotation or Java configuration. It's important that beans are known to application context." -  Tomasz Nurkiewicz Hello everyone, in this article, we will learn how to resolve org.springframework.beans.factory. NoSuchBeanDefinitionException : No qualifying bean of type 'com.knf.dev.demo.account.HelloManager' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: Using: 1. Stereotype Annotations. 2. @Configuration, @Bean Annotation. Before going to the example just a quick overview of NoSuchBeanDefinitionException ,  @Configuration annotation, @Bean annotation, and  @Component annotation( Stereotype annotation ). NoSuchBeanDefinitionException: The 'org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.knf.dev.demo.account.HelloManager' available: expected at least 1 bean which qualifies as