Quick revision
The short answer
Most organisations treated Boot 2 to 3 as one big emergency project, started late, with services far behind and shared libraries blocking everyone. Next time I would start early by keeping every service on the latest minor with zero deprecations, upgrade shared libraries and platform starters first, automate the changes with recipes, track progress centrally, budget the work inside each team's normal plan, and hunt down blockers such as vendor libraries months before the deadline.
What to remember
In this answer, we saw that the pain of Boot 2 to 3 came less from the code changes than from drift, the order of the work and the way it was funded. For the next major, I would keep services on the latest minor with no deprecations, upgrade shared libraries and the platform BOM before services, automate with OpenRewrite and the properties migrator, track progress on a central dashboard, budget upgrade time in every team's plan, and find blocking libraries early through inventory and pilots.
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.
Most organisations treated Boot 2 to 3 as one big emergency project, started late, with services far behind and shared libraries blocking everyone. Next time I would start early by keeping every service on the latest minor with zero deprecations, upgrade shared libraries and platform starters first, automate the changes with recipes, track progress centrally, budget the work inside each team's normal plan, and hunt down blockers such as vendor libraries months before the deadline.
Why this question is asked
The Boot 2 to 3 move was the largest Spring migration in a decade: Java 17 as the minimum, the javax to jakarta package rename, Hibernate 6 and a new observability model all arrived at once. Many organisations discovered that the real difficulty was not the code changes, which were mostly mechanical, but the way the work was organised. Interviewers ask a senior leader this question to hear lessons, not a checklist: what went wrong in the industry, why, and how a different plan avoids it. In this answer, we will look at what typically went wrong, then go through the changes I would make: staying current, ordering the work from the bottom of the dependency graph, automating and tracking it, funding it as normal work, and clearing blockers early.
1What Usually Went Wrong With Boot 2 to 3
A major Spring Boot release is one that is allowed to break compatibility. Boot 3.0 removed everything deprecated in 2.x, moved to Jakarta EE 9 and later, which renamed the javax packages to jakarta, and required Java 17. A service that was still on Boot 2.3 with Java 11 therefore had to make several jumps at once: Java version, every Boot minor in between, the namespace change and the libraries that depended on all of them.
The pattern seen in many companies was similar. Services drifted for years because nobody owned upgrades. When Boot 2.7 reached the end of its open source support in late 2023, the upgrade suddenly became urgent, and a central team was asked to run a migration project. Teams then found that their shared internal libraries, the company's security starter or logging starter, were still on javax and blocked every service. Some vendor SDKs had no Jakarta release at all. The project overran because the blocking work was discovered last instead of first.
Notice that none of these causes was technical difficulty. The OpenRewrite recipes and the official migration guide handled most of the code. The cost came from accumulated drift, the order of the work and the way it was funded.
2Lesson 1: Start Early by Staying Current
The single biggest change I would make is to treat the next major release as something we prepare for continuously. Spring deprecates an API in one minor release and removes it in the next major one, and the deprecation warning tells us what to use instead while the old and new code both still work. So a service that is on the latest minor, for example Boot 3.5, with zero deprecation warnings, is already most of the way to Boot 4.0. The same rule applies to the Java version: being on Java 21 or 25 before the framework requires it removes one of the jumps.
The reason this works is that small steps are cheap and independent. Moving from 3.4 to 3.5 is usually a day of work with a clear release note. Moving from 3.1 straight to 4.0 is a week of untangling several changes at once, and when something breaks we cannot tell which change caused it.
3Lesson 2: Upgrade From the Bottom of the Dependency Graph
Services depend on shared libraries, and shared libraries depend on the framework. A service cannot move to a new major until everything it imports has moved. So the order of the work matters more than its speed. I would publish a platform BOM, a bill of materials that pins the versions of Spring Boot and our internal starters together, and upgrade it in layers, as the diagram shows.
In practice this means the platform team ships Boot 4 compatible versions of the internal starters first, ideally even before the Boot release goes GA, using the milestone builds. Only then do service teams start, and they find that their imports already work.
- Framework releaseBoot milestones tested by the platform team
- Internal libraries and starterssecurity, logging, messaging clients
- Platform BOMone version set published for everyone
- Pilot servicestwo or three representative services
- All other servicesteams upgrade with recipes and the BOM
5 layers, from the top down. Step through them one at a time.
Each layer can only move after the layer below it is ready.
4Lesson 3: Automate and Track Centrally
Most changes in a Spring major migration are mechanical: renamed imports, renamed properties, replaced annotations. OpenRewrite, a tool that rewrites source code from recipes, has a recipe per Boot major release that applies these changes. I would run it in dry-run mode across all repositories first to measure the work, then let each team apply it with one command. The properties migrator, a dependency that reports renamed configuration keys at startup, covers what the code recipes cannot see.
Tracking matters as much as automation. A central dashboard that shows every service, its Boot version, its Java version, its deprecation count and its blockers turns the migration from a set of private surprises into a visible plan. When leadership asks how far along we are, the answer is a number, for example 140 of 200 services on the new version and 12 blocked by two libraries.
5Lesson 4: Budget the Work Inside Each Team's Plan
An emergency project run by a central team does not scale, because the central team does not know each service and the service teams treat the work as someone else's problem. I would instead put a fixed share of capacity into every team's normal plan, for example two to three days per service per Boot minor release, and make keeping current part of the definition of a healthy service.
The cost is predictable this way. Two hundred services times three days twice a year is a known line in the plan. The alternative, letting drift build up and then funding a six month migration, usually costs more and also blocks feature work for the whole period.
6Lesson 5: Find the Blockers Early
Blockers are dependencies we cannot upgrade ourselves: a vendor SDK, a commercial application server, a monitoring agent or an abandoned open source library. In Boot 3 these were the long poles. I would build an inventory of third party libraries as soon as the next major is announced, ask each vendor for their compatibility date, and plan replacements for libraries that have none. A small pilot on a representative service, done during the milestone phase, finds most blockers before they can hold up the fleet.
Here is how I would decide what to do with each blocker.
- Has a compatible version?YesUpgrade it in the platform BOMNoAsk the vendor or maintainers for a date
- Date before our deadline?YesTrack it on the dashboardNoPlan a replacement or a wrapper
- Replace or isolate itwrap the library behind our own interface so the swap is local
- Re-run the pilotconfirm nothing else blocks
4 steps in order. Play them, or step through them one at a time.
7Follow-up questions
How would you convince teams to spend time on upgrades when they have feature deadlines?
I would show the cost of the last migration in team weeks and compare it with a small steady budget, and I would make the upgrade cheap with recipes and a ready platform BOM. When an upgrade takes a day and is part of the normal plan, most teams accept it. For the few who still fall behind, the version dashboard and a published support policy make the risk visible to their own management.
Would you use a big bang or a gradual approach for the next major?
Gradual. Each service upgrades on its own schedule within a window, once its dependencies are ready. A big bang across hundreds of services multiplies risk and creates a single huge release; gradual upgrades limit the blast radius and let us learn from the first services.
What would you measure to know the new approach is working?
The version spread across the fleet, the number of services more than one minor behind, the deprecation count per service, the time from a Boot release to 90 percent adoption, and the number of incidents caused by upgrades. If adoption time falls and incidents stay flat, the approach is working.
8Conclusion
In this answer, we saw that the pain of Boot 2 to 3 came less from the code changes than from drift, the order of the work and the way it was funded. For the next major, I would keep services on the latest minor with no deprecations, upgrade shared libraries and the platform BOM before services, automate with OpenRewrite and the properties migrator, track progress on a central dashboard, budget upgrade time in every team's plan, and find blocking libraries early through inventory and pilots.
Open with
Looking back at Boot 2 to 3 across the industry, the code changes were mostly mechanical; what hurt was that services had drifted for years, shared libraries blocked everyone, and the work became an emergency project when 2.7 support ended.
Then, if they want more
For the next major I would change the organisation more than the tooling. First, start early: every service stays on the latest minor with zero deprecation warnings, because deprecations tell us exactly what the next major removes.
Second, work bottom up: the platform team upgrades internal starters and the platform BOM first, using milestone builds, so service teams find their imports already work. Third, automate and track: OpenRewrite recipes in dry run to size the work, the properties migrator for configuration, and a central dashboard of versions and blockers so progress is a number, not a feeling.
Fourth, budget it as normal work, a few days per service per minor inside each team's plan, instead of a central project that blocks features for months.
And fifth, find blockers early: inventory vendor and abandoned libraries as soon as the major is announced, pilot on a few representative services, and plan replacements or wrappers for anything without a compatible release.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 17, Hibernate 6, Jakarta EE 9, Java 11
- 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.
- Official documentation
- Spring Boot reference
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 "Looking at the Boot 2 to 3 migration across the industry, what would you do differently...": https://scrivio-interview-library.netlify.app/spring-boot/boot-migrations/b538c16de8/