spring-cloud / spring-cloud/spring-cloud-openfeign
Exception: No qualifying bean of type 'org.springframework.boot.autoconfigure.http.HttpMessageConverters' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 838
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 13
Description
Describe the bug
Exception: No qualifying bean of type 'org.springframework.boot.autoconfigure.http.HttpMessageConverters' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
Sample
Currently we are facing above issue while calling runtime objects conversion to call endpoints by using FeignClient / RestClient as well.
-
<spring-cloud.version>2025.0.0</spring-cloud.version> -
<io-aws-spring-version>3.4.0</io-aws-spring-version> -
<spring-boot.version>3.5.4</spring-boot.version>
Feign Client :
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign</artifactId>
<version>4.3.0</version>
While initially using Spring Boot 3.5.0, my application suddenly required the property spring.main.allow-bean-definition-overriding=true to start the server. Despite attempting various encoder and decoder techniques, the issue remains unresolved.
Below property now asking mandatory true i don't know what is the reason behind this.
spring :
main:
allow-bean-definition-overriding: true
I thought initially feign client issue I have started using RestClient even though while calling endpoint same issue remain as is .
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the bean-creation failure with the listed Spring Boot, Spring Cloud OpenFeign, and AWS Spring versions, using both FeignClient and RestClient endpoint calls. Investigate why HttpMessageConverters is unavailable and why spring.main.allow-bean-definition-overriding is required; done means the application starts and runtime object conversion succeeds without that workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100