Scrivio Interview library
DebuggingIntermediate7 min read · updated 12 November 2026

After upgrading Spring Boot, the application fails at startup with an error mentioning 'Spring Boot [x] is not compatible with this Spring Cloud release train'. What is happening and how do you fix it?

Spring Cloud has a compatibility verifier that runs at startup and checks the Spring Boot version against the versions the current release train supports. Each train supports specific Spring Boot minor versions, so after a Boot upgrade we upgrade the spring-cloud-dependencies BOM to the matching train. Turning the check off with spring.cloud.compatibility-verifier.enabled=false hides real incompatibilities and is a last resort; we also remove or migrate libraries dropped from the train, such as Sleuth or the Netflix components, and plan Boot and Cloud upgrades together.

Why this question is asked

This error usually appears right after a dependency bot or a developer bumps the Spring Boot version and nothing else. It looks like an obstacle, but it is one of the most helpful errors in the Spring ecosystem, because it fails in the first second with a clear message instead of failing later with a missing method. Interviewers ask it to see whether we understand how Spring Cloud versions relate to Spring Boot and whether we would fix the cause or just silence the check. In this answer, we will see what the verifier does, reproduce the error, fix it by moving to the matching train, deal with libraries that left the train, and set up upgrades so this does not surprise us again.

1What the Compatibility Verifier Does

Spring Cloud is released as a release train, a set of project versions tested together, and each train is built and tested against specific Spring Boot minor versions. For example, the 2025.0 train targets Spring Boot 3.5, and 2025.1 targets Spring Boot 4.0. Spring Cloud libraries use Spring Boot internals such as auto-configuration classes and binding APIs, which can change between Boot minor versions.

To avoid confusing failures, Spring Cloud Commons includes a compatibility verifier, an auto-configuration that runs early at startup, reads the Spring Boot version on the classpath and compares it with the versions the train declares as supported. If they do not match, it stops startup with a clear report.

2Reproducing the Error

Picture a project on Spring Boot 3.4 with the 2024.0 train. A pull request bumps only the Boot parent to 3.5. The build succeeds, but the application fails at startup.

XML
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.6</version> <!-- bumped from 3.4.x -->
</parent>
...
<artifactId>spring-cloud-dependencies</artifactId>
<version>2024.0.1</version> <!-- still the train for Boot 3.4 -->
// At startup (wording varies a little by version):
// ***************************
// APPLICATION FAILED TO START
// ***************************
// Description:
// Your project setup is incompatible with our requirements due to following reasons:
// - Spring Boot [3.5.6] is not compatible with this Spring Cloud release train
// Action:
// Consider applying the following actions:
// - Change Spring Boot version to one of the following versions [3.4.x] .

Notice that the build did not fail. Maven or Gradle happily resolved both BOMs; the mismatch is only detected at runtime. That is why a test that starts the application context, run in CI, is valuable for every dependency upgrade.

3The Fix: Move to the Matching Train

The real fix is to upgrade the Spring Cloud BOM to the train that supports the new Boot version. We look up the compatibility table on the Spring Cloud project page, find the train for Boot 3.5, which is 2025.0, and change one version.

XML
<artifactId>spring-cloud-dependencies</artifactId>
<version>2025.0.0</version> <!-- the train for Boot 3.5 -->
// Gradle equivalent:
// implementation platform("org.springframework.cloud:spring-cloud-dependencies:2025.0.0")
// Startup now passes the verifier; then read the train's release notes for changes
Step throughFixing the startup failure
  1. Startup fails: Boot not compatible with train
  2. Find the train for the new Boot versioncompatibility table
  3. Update the spring-cloud-dependencies BOMone version change
  4. Do all used projects exist in the new train?
    YesRead release notes, fix deprecationsNoMigrate removed libraries first
  5. Run the full test suitecontext starts, integration tests pass

5 steps in order. Play them, or step through them one at a time.

Moving to a new train can bring its own changes, because each project in the train may have new major or minor versions. For 2025.0, for example, Spring Cloud Gateway moved to new server module names and property prefixes, with the old ones deprecated. So after the version change we read the release notes for every Spring Cloud project we use, run the full test suite and fix deprecation warnings.

4Why Disabling the Check Is a Last Resort

The verifier can be turned off with spring.cloud.compatibility-verifier.enabled=false, and there is also a property to declare extra accepted Boot versions. It is tempting, because the application may even seem to start. But the check exists because the train was not tested with that Boot version. Incompatibilities then show up later and in worse ways: a NoSuchMethodError or ClassNotFoundException when a code path first runs, a bean that silently fails to configure, or properties that no longer bind.

There are rare legitimate uses: a new Boot patch or minor released before the matching train, where the release notes confirm compatibility, or a short test to see what else breaks during an upgrade spike. Even then, it should be a temporary, documented decision with a ticket to remove it, never a permanent setting in production configuration.

5Libraries That Left the Train

Sometimes no matching train contains a library we depend on, because it was removed. Spring Cloud Sleuth is not part of any train that supports Spring Boot 3, and Netflix Ribbon, Hystrix and Zuul were removed in the 2020.0 train. If a project still uses them, upgrading the BOM leaves those dependencies without a managed version, and the build fails or pulls an old version that breaks.

These need migration, not a version bump: Sleuth to Micrometer Tracing with an OpenTelemetry or Brave bridge, Ribbon to Spring Cloud LoadBalancer, Hystrix to Spring Cloud CircuitBreaker with Resilience4j, and Zuul to Spring Cloud Gateway. Running mvn dependency:tree or gradle dependencies before the upgrade shows which of these are still present, including through shared internal libraries, which are often the real culprits.

6Upgrading Boot and Cloud Together

The lasting fix is a process. Spring Boot and Spring Cloud are upgraded together as one planned step, never separately. Dependency bots should group the Boot parent and the Spring Cloud BOM in one pull request, or the Boot bump should be held until the matching train is released, which usually follows the Boot release within weeks. Many companies manage this in a platform BOM that pins Boot, Cloud and other key libraries to known-good combinations, so services upgrade one coordinated version.

Each upgrade pull request runs a context-loading test, so the verifier fails in CI rather than at deployment. Large jumps, such as from Boot 2.7 to 3.x, are done in steps, one minor version at a time, reading the release notes at each step.

7Follow-up questions

Why does the build not catch the mismatch?

Because both BOMs resolve fine as dependency sets; Maven and Gradle know nothing about Spring's compatibility rules. Only running code can check them, which is why the verifier runs at startup and why a SpringBootTest that loads the context in CI catches it early.

What if the matching train is not released yet?

Stay on the previous Boot minor version until it is. Patch releases of the current Boot minor are normally fine with the current train, so security fixes still arrive. Disabling the verifier to get a new minor early is rarely worth the risk.

Can individual Spring Cloud projects be upgraded outside the train?

It is possible to override one project's version, but it defeats the purpose of the train, which is a tested combination. If one project needs an urgent fix, prefer a patch release of the train, such as 2025.0.1, which bundles it.

8Conclusion

In this answer, we saw that the error comes from Spring Cloud's compatibility verifier, which compares the Spring Boot version with the versions the release train supports. We fixed it by moving the spring-cloud-dependencies BOM to the matching train and reading its release notes, kept spring.cloud.compatibility-verifier.enabled=false as a documented last resort, migrated libraries that were dropped such as Sleuth and the Netflix components, and set up upgrades so Boot and Cloud move together with a context test in CI.

What to say in the interviewAbout 90 seconds aloud

Open with

This comes from Spring Cloud's compatibility verifier. Spring Cloud is released as trains that are tested against specific Spring Boot minor versions, for example 2025.0 for Boot 3.5 and 2025.1 for Boot 4.0, and the verifier runs at startup, compares the Boot version on the classpath with the train's supported versions, and stops startup if they do not match.

Then, if they want more

So what happened is that Boot was upgraded and the spring-cloud-dependencies BOM was not. The build does not notice, because both BOMs resolve; only startup does.

The fix is to look up the compatibility table and move the BOM to the matching train, then read the release notes of each Spring Cloud project we use, because a new train can rename things, like the gateway's new module names and property prefix in 2025.0, and run the full tests.

I would not just set spring.cloud.compatibility-verifier.enabled=false; that hides real incompatibilities that later show up as NoSuchMethodError or beans that silently do not configure. At most it is a temporary, documented step.

If the project still uses libraries that left the train, like Sleuth or Ribbon, Hystrix and Zuul, those need migration: Micrometer Tracing, LoadBalancer, Resilience4j through CircuitBreaker, and Spring Cloud Gateway.

And to prevent it, I would upgrade Boot and Cloud together in one planned step, grouped in one pull request or managed through a platform BOM, with a context-loading test in CI.

About this answer

Last updated
12 November 2026
Versions it names
Spring Boot 3, Spring Boot 3.4, Spring Boot 3.5, Spring Boot 4.0
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "After upgrading Spring Boot, the application fails at startup with an error mentioning...": https://scrivio-interview-library.netlify.app/spring-boot/spring-cloud/f83bdaf590/