Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Spring Boot 3.1 Compatibility?

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java, spring-boot

調査の方向性

まず spring-cloud-starter-consul と spring-cloud-commons の Maven 依存関係ツリーを調べ、報告された失敗から CompatibilityVerifierAutoConfiguration と CompositeCompatibilityVerifier を読み取ります。Spring Boot 3.1.1 と Spring Cloud 2022.0.3 でセットアップを再現します。対応している依存関係の組み合わせが compatibility-verifier の失敗なしに起動すれば完了です。

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

説明

waiting-for-triage

Describe the bug
Spring Cloud Version: 2022.0.3

I am using spring-cloud-starter-consul-discovery (via maven bom 2022.0.3) alongside with Spring Boot 3.1.1, but I'm getting the following error:

2023-07-17T14:26:52.454+01:00  WARN 83218 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compositeCompatibilityVerifier' defined in class path resource [org/springframework/cloud/configuration/CompatibilityVerifierAutoConfiguration.class]: Failed to instantiate [org.springframework.cloud.configuration.CompositeCompatibilityVerifier]: Factory method 'compositeCompatibilityVerifier' threw exception with message: Spring Cloud/ Spring Boot version compatibility checks have failed: [[VerificationResult@1f6f0fe2 description = 'Spring Boot [3.1.1] is not compatible with this Spring Cloud release train', action = 'Change Spring Boot version to one of the following versions [3.0.x] .
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn]. 
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]']]

According to this blog post, Spring Cloud 2022.0.3 should be compatible with Spring Boot 3.1.x https://spring.io/blog/2023/05/25/spring-cloud-2022-0-3-aka-kilburn-is-available

I was looking at the dependency tree, seems that spring-cloud-starter-consul is fetching an older version of spring-cloud-commons, which isn't compatible with Spring Boot 3.1.x

image

https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-consul/4.0.2

https://github.com/spring-cloud/spring-cloud-commons/commit/a2cc42614c60de7b05100741d13fcf93f32c3849

主要言語
Java
スター
821
フォーク
540
平均マージ
14時間 22分
マージ済み PR(30日)
16

環境構築

はじめの一歩

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

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

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

似ている issue

Java の issue をもっと見る

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

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