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:

オープン
#1,229 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, spring, spring-boot
領域
api, backend

調査の方向性

まず、記載されている Spring Boot、Spring Cloud OpenFeign、AWS Spring のバージョンを使用し、FeignClient と RestClient の両方のエンドポイント呼び出しで bean 作成の失敗を再現します。HttpMessageConverters が利用できない理由と、spring.main.allow-bean-definition-overriding が必要な理由を調査します。回避策なしでアプリケーションが起動し、実行時のオブジェクト変換が成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

waiting-for-triage

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 .

主要言語
Java
スター
1.3k
フォーク
834
平均マージ
3日 6時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-cloud/spring-cloud-openfeign のほかの issue

spring-cloud/spring-cloud-openfeign の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。