Quick revision
The short answer
The starter defined beans without @ConditionalOnMissingBean, so they clashed with or replaced the services' own beans, and it changed default behaviour without a major version or release notes, while services pulled new versions automatically without testing. The fix is both technical and process: conditional beans, semantic versioning, changelogs, deprecation periods and a test matrix of representative services before release, with risky changes shipped opt-in behind properties before they become the default.
What to remember
In this answer, we debugged a shared starter upgrade that broke several services. We reproduced the startup failure caused by an unconditional bean, saw how it also disabled Spring Boot's own auto-configuration, fixed it with @ConditionalOnMissingBean or a customizer, and traced the silent behaviour change to a default altered in a minor release without notes. We then fixed the process: semantic versioning with changelogs and deprecation periods, pinned versions with bot-driven upgrades, a test matrix of representative services, and risky changes shipped opt-in before becoming defaults.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The starter defined beans without @ConditionalOnMissingBean, so they clashed with or replaced the services' own beans, and it changed default behaviour without a major version or release notes, while services pulled new versions automatically without testing. The fix is both technical and process: conditional beans, semantic versioning, changelogs, deprecation periods and a test matrix of representative services before release, with risky changes shipped opt-in behind properties before they become the default.
Why this question is asked
A shared starter is powerful because one change reaches every service. That is also why a bad release can break many services on the same morning. When several services fail at startup after an upgrade, the root cause is rarely one line of code; it is a combination of how the starter defines beans, how it is versioned and how services consume it. Interviewers ask this debugging question to see whether a candidate can read the failures, find the technical cause and then fix the process that let it through. In this answer, we will reproduce the bean conflict, see why the defaults changed silently, look at how the versions arrived, and design the release process that prevents it.
1Reproducing the Bean Conflict
Suppose the new starter version adds a convenience bean: a shared ObjectMapper, Jackson's JSON converter, with company settings. Many services already define their own ObjectMapper bean with the same name. The starter's bean is plain, with no condition.
Spring Boot disables bean definition overriding by default, so two beans with the same name stop the application. With different names the failure moves: injection points that expect one ObjectMapper now see two and fail with NoUniqueBeanDefinitionException. And in services that did not define their own ObjectMapper, the starter's bean quietly makes Spring Boot's own Jackson auto-configuration back off, because that one is conditional, so properties like spring.jackson.serialization stop working. Three symptoms, one cause: an unconditional bean in a library.
2The Technical Fix in the Starter
A library must never insist on its beans. Every bean in an auto-configuration should step aside when the application has defined its own, and should be ordered relative to the Boot auto-configuration it builds on.
Often the better fix is not to define the bean at all, but to contribute a customizer that Spring Boot applies to its own bean, as here. That keeps every Boot property and user override working. Where the starter must define a bean, @ConditionalOnMissingBean is mandatory. Spring Boot 4 moved to Jackson 3 with different package and class names, so check your version for the exact customizer type.
3Why the Defaults Changed Silently
The second symptom was changed behaviour: services that started fine now behaved differently, for example HTTP calls timing out. The starter's HTTP client default timeout had been lowered from 30 seconds to 5 seconds in a minor release, 2.3 to 2.4, with no release notes. For most services this was harmless; for the ones calling a slow partner API it caused failures.
Under semantic versioning, a version is MAJOR.MINOR.PATCH: patch releases fix bugs, minor releases add features compatibly, and major releases may break compatibility. Changing a default that alters behaviour is a breaking change for someone, so it belongs in a major release, or behind an opt-in property, and it must be written in a changelog that consumers can read before upgrading.
4How the New Versions Arrived Untested
The third part of the cause is how services consumed the starter. Several services declared a dynamic version, such as 2.+ in Gradle or a version range in Maven, or imported the company BOM with a dynamic version, so the newest release was picked at build time. So a rebuild for an unrelated change picked up 2.4.0 without anyone deciding to upgrade, and without a test run focused on the change.
The fix on the consumer side is pinned versions, managed through a BOM, with upgrades proposed by a dependency update bot such as Renovate or Dependabot. Each upgrade then becomes a pull request in each service, with the changelog attached and the service's tests run against the new version, and the team merges it when it passes.
| Problem | Effect | Fix |
|---|---|---|
| Unconditional bean in the starter | startup failure, Boot defaults lost | @ConditionalOnMissingBean or customizer |
| Default changed in a minor release | silent behaviour change | Major version or opt-in property |
| No release notes | teams could not see the change | Changelog per release |
| Dynamic versions in services | untested upgrades on rebuild | Pinned versions, bot pull requests |
| No test against real services | failures found in production | Test matrix before release |
5Fixing the Release Process
The starter is a product used by many services, so its release process has to match. Every release follows semantic versioning and has a changelog that lists new features, changed defaults and deprecations. Deprecations come before removals: a property or bean to be removed is marked deprecated, logged as a warning when used, and removed only in the next major version, giving teams at least one release cycle to move.
Before a release is published, it runs against a test matrix: a set of representative services, such as one plain REST service, one Kafka consumer, one with custom security and one with its own ObjectMapper, built and started with the new starter version in CI. This catches startup conflicts and the most common behaviour changes before any team sees them.
- Change merged in the starterwith a changelog entry
- Behaviour change or removal?YesyesNoopt-in property or next major
- Run the test matrixrepresentative services start and pass tests
- Matrix green?YesyesNopublish release and changelog
- Bots open upgrade PRs in servicesteams merge after their own tests
5 steps in order. Play them, or step through them one at a time.
6Making Risky Changes Opt-In First
For changes that some services need and others might be hurt by, the safest path is in stages. First, ship the new behaviour behind a property that defaults to the old behaviour, for example acme.http.timeout-strategy=new. Teams that want it turn it on and report problems. Next, in a later release, announce that the default will change and log a warning for services still on the old behaviour. Only in the next major version does the new behaviour become the default.
This turns a risky change into a series of small, visible steps. By the time the default changes, most services have already tried it, and the ones that have not have been warned in their own logs.
7Follow-up questions
How do you find quickly which services are affected after a bad starter release?
From the dependency data: a service catalogue or software bill of materials scan shows which services resolved the new version. Startup failures appear in deployment events, and the conditions evaluation report or the failure message names the starter's class, as in the example. Then we release a patch that restores the old behaviour, rather than asking every team to work around it.
Should the starter use @ConditionalOnMissingBean on every bean?
On every bean a service might reasonably want to replace, which is nearly all of them. Internal helper beans that only the starter uses can be unconditional, but they should have distinctive names and types so they never collide with application beans.
Who should own the test matrix?
The team that owns the starter, with service teams contributing representative test services. Owning it in the starter's own pipeline means a release cannot be published without passing it, which is the point.
8Conclusion
In this answer, we debugged a shared starter upgrade that broke several services. We reproduced the startup failure caused by an unconditional bean, saw how it also disabled Spring Boot's own auto-configuration, fixed it with @ConditionalOnMissingBean or a customizer, and traced the silent behaviour change to a default altered in a minor release without notes. We then fixed the process: semantic versioning with changelogs and deprecation periods, pinned versions with bot-driven upgrades, a test matrix of representative services, and risky changes shipped opt-in before becoming defaults.
Open with
I would separate the technical cause from the process cause. Technically, the new starter defined beans without @ConditionalOnMissingBean. If a service had its own bean with the same name, startup failed because Spring Boot disables bean overriding by default; with a different name, injection points saw two candidates; and in services without their own bean, the starter's bean made Boot's own auto-configuration back off, so standard properties stopped working.
Then, if they want more
The fix in the starter is to make every bean conditional, or better, to contribute a customizer to Boot's bean instead of replacing it. The second problem was a changed default, like a lower HTTP timeout, shipped in a minor version with no release notes. Under semantic versioning that belongs in a major version or behind an opt-in property.
The third was consumption: services used dynamic versions, so a rebuild pulled the new release without testing.
I would fix the process with pinned versions in a BOM and upgrade pull requests from Renovate or Dependabot, a changelog for every release, deprecation periods with warnings before anything is removed, and a test matrix of representative services that must pass in the starter's pipeline before a release is published.
Risky changes ship opt-in first, then with a warning, and become the default only in the next major version.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Spring Boot 4
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. 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 the company's shared Spring Boot starter, several services fail at...": https://scrivio-interview-library.netlify.app/architecture/platform-and-governance/69bdb03bc7/