Quick revision
The short answer
I would set a policy of staying within one or two minor versions of the current Spring Boot and Framework line, because small regular upgrades are cheap and keep security fixes free. Falling behind a major line compounds the cost, since the Java baseline, package names and many dependencies change together, and once open-source support ends we either pay for commercial support or carry unpatched CVEs. So upgrades are budgeted as routine maintenance with platform tooling, not one-off projects, and business code is kept isolated from framework details so future moves stay feasible.
What to remember
In this answer, we set a policy for following Spring: stay within one or two minor versions so upgrades stay small and security fixes stay free. We saw why falling behind compounds, because the Java baseline, namespaces and dependencies change together across major lines, and why the end of open-source support forces paid support or unpatched CVEs. Upgrades are budgeted as routine maintenance with platform starters, recipes, bots and a version dashboard, and business code is kept independent of the framework so future moves stay feasible.
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.
I would set a policy of staying within one or two minor versions of the current Spring Boot and Framework line, because small regular upgrades are cheap and keep security fixes free. Falling behind a major line compounds the cost, since the Java baseline, package names and many dependencies change together, and once open-source support ends we either pay for commercial support or carry unpatched CVEs. So upgrades are budgeted as routine maintenance with platform tooling, not one-off projects, and business code is kept isolated from framework details so future moves stay feasible.
Why this question is asked
Spring has gone from XML to annotations, Java configuration, Boot, Jakarta, and now AOT and JSpecify. Each step was optional for a while, and then it was not, because the old line stopped receiving fixes. An organisation that follows closely pays a little every few months; one that waits pays a lot at once, usually at a bad time, such as when a critical CVE lands on a version that is no longer patched. Interviewers ask this at the strategy level to see whether we can put numbers on that trade and turn it into a policy. In this answer, we will look at how Spring's release and support cycle works, see why falling behind compounds, set a policy for how close to follow, show how to budget upgrades as routine work, and keep the codebase easy to move.
1A Quick Recap of Spring's Release and Support Cycle
Spring Boot ships a new minor version about every six months, and each minor line receives open-source support, meaning free bug and security fixes, for roughly a year; check the current support policy on the Spring website for exact dates. Each Boot generation is built on a Spring Framework generation: Boot 2 on Framework 5, Boot 3 on Framework 6, Boot 4 on Framework 7. Major generations also move the minimum Java version and the Jakarta EE level.
After open-source support ends, fixes continue only through commercial support. That is the fact that turns a technical choice into a financial one.
2Why Falling Behind Compounds
Upgrading one minor version usually means a dependency bump, a handful of deprecation fixes and a test run, often a day or two per service. Skipping a major line means meeting many changes at once. Moving from Boot 2.7 to Boot 3.x is the clearest example: Java 8 or 11 to 17, javax to jakarta, Spring Security 5 to 6 configuration, Hibernate 5 to 6 and new versions of most libraries, all needing to happen together because each depends on the others.
| Approach | Typical work per service | Risk |
|---|---|---|
| Every minor, every 6 months | 1 to 3 days each time | low, one change set at a time |
| Every second minor | 3 to 5 days | low to medium |
| Skip a major line (Boot 2.7 to 3.x) | 2 to 6 weeks | high, Java, jakarta, Security, Hibernate together |
| Stay past OSS end | no work now, then a rushed jump | unpatched CVEs or paid support |
Notice that the total work of following closely over three years is often smaller than one major jump, and it never arrives as an emergency. The jump is also harder to test, because when everything changes at once, a failing test can have many causes.
3The Cost of Losing Support
When a line leaves open-source support, a new vulnerability in Spring or one of the libraries it manages stops receiving a free patch for that line. We then have three choices: buy commercial extended support, which costs money every year; patch or replace the vulnerable parts ourselves, which is risky and slow; or accept unpatched CVEs, which security and audit teams increasingly do not allow.
The cost also shows up indirectly. Libraries drop support for old Spring lines, so we cannot take their fixes either; new hires learn the current Spring and find our patterns unfamiliar; and the platform team maintains two sets of templates and starters.
4Budgeting Upgrades as Routine Maintenance
The policy that works is to treat upgrades like dependency hygiene, not like projects. Concretely, each team reserves a fixed share of capacity, for example a few days per quarter, and the platform team does the preparation: it upgrades the shared starters and BOMs first, publishes a short migration note, and provides OpenRewrite recipes for the mechanical changes. A bot such as Renovate or Dependabot opens the upgrade pull requests, and the build runs the full tests on them.
- New Boot minor releasedabout every six months
- Platform upgrades starters and BOMwithin a few weeks
- Publish migration notes and recipesOpenRewrite where possible
- Bots open upgrade pull requestsper service
- Do the tests pass?YesMerge and deploy normallyNoTeam fixes with platform help
- Track versions on a dashboardflag services two minors behind
6 steps in order. Play them, or step through them one at a time.
A dashboard of which service runs which version makes laggards visible early, while they are still one step behind rather than a whole major line.
5Keeping Business Code Easy to Move
Upgrades are cheap only if framework details stay at the edges. Domain classes and business rules should be plain Java, without Spring annotations, servlet types or persistence-specific behaviour leaking through. Framework-specific code, such as controllers, configuration, repositories and messaging adapters, sits around that core. When the next shift comes, whether a package rename, a new HTTP client or a new null-safety standard, the change touches the edges and leaves the business rules alone. The same discipline also lowers the cost of a future framework change, if we ever decide on one.
6Follow-up questions
Should we always adopt a new major line as soon as it is released?
Not on day one. I would let the first patch releases come out and the main libraries we use publish compatible versions, typically one to three months, while the platform team prepares starters and recipes. Then teams move in waves. The aim is to be on the new line well before the old one leaves open-source support, not to be first.
How do you justify upgrade time to product management?
With the cost comparison: a few days per service per quarter versus several weeks of rushed work, a security exception or a support contract later. Linking specific CVEs that were fixed for free because we were current makes the case concrete.
What about services nobody owns any more?
They are the biggest risk and should be on the dashboard explicitly. Either a team adopts them, they are retired, or they are isolated behind strict network rules with a dated plan. Leaving them unowned is how a company ends up with a server running a ten-year-old framework.
7Conclusion
In this answer, we set a policy for following Spring: stay within one or two minor versions so upgrades stay small and security fixes stay free. We saw why falling behind compounds, because the Java baseline, namespaces and dependencies change together across major lines, and why the end of open-source support forces paid support or unpatched CVEs. Upgrades are budgeted as routine maintenance with platform starters, recipes, bots and a version dashboard, and business code is kept independent of the framework so future moves stay feasible.
Open with
My policy would be to stay within one or two minor versions of the current Spring Boot line. Boot ships a minor about every six months and each minor gets open-source fixes for roughly a year, so following closely means a day or two of work per service per upgrade and security fixes for free.
Then, if they want more
Falling behind compounds. When you skip a major line, everything moves at once: the Java baseline, javax to jakarta, Spring Security configuration, Hibernate and most libraries, and a two-day job becomes several weeks of hard-to-debug work.
And once a line leaves open-source support, a new CVE leaves us choosing between paying for commercial support, patching it ourselves, or running unpatched code. So I budget upgrades as routine maintenance, not projects.
The platform team upgrades shared starters and BOMs first, publishes short notes and OpenRewrite recipes, bots open the pull requests, and teams reserve a few days a quarter. A dashboard shows every service's version and flags anyone two minors behind.
Finally, I keep business code isolated from framework details, plain Java domain types and rules, with Spring at the edges, so the next shift, whether AOT, JSpecify or something we cannot predict, touches the edges and not the core.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Hibernate 5, Java 8, Spring Security 5
- 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 Framework reference, Core technologies
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 "Spring Framework has moved from XML to annotations, Java config, Boot, Jakarta and now...": https://scrivio-interview-library.netlify.app/spring-boot/spring-framework-evolution/83f2fdc5b4/