org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency [org.springframework.http.HttpHeaders]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Twain Bome
, 1 year ago
No qualifying bean found for dependency [org.springframework.http.HttpHeaders]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
via Stack Overflow by 吴环宇
, 6 months ago
No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=mysql.datasource)}
via GitHub by Sandesh1107
, 2 months ago
No qualifying bean of type 'com.google.common.cache.CacheBuilderSpec' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
via Stack Overflow by Sneaky Mistake
, 10 months ago
No qualifying bean of type 'org.springframework.jdbc.core.JdbcTemplate' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
via Stack Overflow by Tito
, 7 months ago
No qualifying bean of type 'org.hibernate.SessionFactory' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
via Stack Overflow by Manisha
, 5 months ago
No qualifying bean of type 'com.test.services.customreport.CustomReportService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency [org.springframework.http.HttpHeaders]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1463)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1094)

Users with the same issue

Once, 1 year ago
2 times, 1 month ago
Once, 5 months ago
Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
52 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.