Quick revision
The short answer
Spring Boot 2.7 and Framework 5.3 are past open-source support, so any new vulnerability in them or their managed libraries gets no free patch, and we must either buy commercial support or upgrade. The jump to Boot 3 needs Java 17, the javax to jakarta migration, Spring Security 6 configuration changes and Hibernate 6, and OpenRewrite recipes plus the Spring Boot properties migrator automate much of it. I would prioritise internet-facing and data-sensitive services, upgrade shared libraries first, and go straight to the current Boot generation where possible to avoid another large upgrade soon.
What to remember
In this answer, we explained that Boot 2.7 and Framework 5.3 being past open-source support means no free security fixes, leaving commercial support or an upgrade. The jump to Boot 3 brings Java 17, javax to jakarta, Spring Security 6 and Hibernate 6 together, and OpenRewrite recipes plus the properties migrator automate much of it. We upgrade shared libraries first, then internet-facing and data-sensitive services, and target the current Boot generation to avoid a second big upgrade soon.
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.
Spring Boot 2.7 and Framework 5.3 are past open-source support, so any new vulnerability in them or their managed libraries gets no free patch, and we must either buy commercial support or upgrade. The jump to Boot 3 needs Java 17, the javax to jakarta migration, Spring Security 6 configuration changes and Hibernate 6, and OpenRewrite recipes plus the Spring Boot properties migrator automate much of it. I would prioritise internet-facing and data-sensitive services, upgrade shared libraries first, and go straight to the current Boot generation where possible to avoid another large upgrade soon.
Why this question is asked
Thirty services on an unsupported framework is a common situation, and it is rarely anyone's fault: the services work, the teams had feature deadlines, and the end of support passed quietly. It becomes urgent the day a critical vulnerability is announced and the fix only exists for current versions. Interviewers ask this scenario to see whether we can explain the risk to people who are not engineers, and organise a multi-team upgrade so it actually finishes. In this answer, we will explain the risk, look at what the jump to Boot 3 involves, see how tools automate it, order the 30 services, and decide which version to target.
1What Past Open-Source Support Means
Every Spring Boot minor line receives free bug and security fixes for a limited time. Boot 2.7, the last of the 2.x line, and Framework 5.3 have passed that date; check the Spring support pages for the exact end dates and for commercial support terms. After it, new fixes for those lines are only available to commercial support customers.
Boot also manages the versions of many libraries: Tomcat, Jackson, Hibernate, Netty, Logback and more. Their maintainers also stop patching old lines over time. So the risk is not only Spring: a vulnerability in Tomcat 9 or an old Jackson databind might have a fix only in versions that need Boot 3. In a security review, this shows up as a growing list of known CVEs we cannot remove.
2Explaining the Risk in Business Terms
For directors and security teams, I would describe three options with their costs. We can buy commercial support, which keeps patches coming for a while and costs money each year, but only delays the upgrade. We can accept the risk, which security and compliance teams increasingly refuse for internet-facing systems and regulated data. Or we can upgrade, which costs engineering time now but removes the problem and lowers future costs. The recommendation is usually to upgrade, possibly with commercial support as a bridge for the services that cannot move quickly.
3What the Jump to Boot 3 Involves
Boot 3 is built on Framework 6, so several large changes arrive together. Java 17 is the minimum. Java EE packages move from javax.* to jakarta.*, which changes imports for servlets, JPA, validation and more, and requires Jakarta versions of every library that uses them. Spring Security 6 removes WebSecurityConfigurerAdapter in favour of SecurityFilterChain beans and changes some defaults. Hibernate 6 changes how some queries, types and id generators behave. Some configuration properties were renamed, and Spring Cloud Sleuth is replaced by Micrometer Tracing.
Notice that this change is not a rename: the security rules must be reviewed, because a mistake here can open an endpoint. That is why security configuration gets a careful human review even when a tool rewrites it.
4Automating the Mechanical Work
OpenRewrite has composite recipes for migrating to Boot 3, which upgrade the Java version, rename javax imports to jakarta, update dependencies and rewrite many Spring Security and property changes; check the current recipe names in its catalogue. Running a recipe produces a diff we can review, which is much faster than doing it by hand across 30 repositories.
The spring-boot-properties-migrator module helps with configuration. Added temporarily as a runtime dependency, it reports properties that were renamed or removed at startup, and temporarily maps old names to new ones, so we can fix application.yml with a clear list. We remove it once the warnings are gone.
Tests do the rest. A service with good web and integration tests can be migrated with confidence; one without them should get a few smoke tests before the upgrade starts.
5Ordering the 30 Services
We cannot upgrade 30 services at once, so the order matters. Shared libraries and internal starters come first, because every service depends on them and they must exist in a Boot 3 compatible version before any service can move. Then we rank services by risk: internet-facing services and those handling personal or payment data go first, since an unpatched vulnerability there does the most damage. Internal, low-sensitivity services follow, and services planned for retirement may be isolated instead of upgraded.
- Inventory versions and exposureBoot version, Java, internet-facing, data
- Upgrade shared libraries and startersBoot 3 compatible releases first
- Pilot one representative servicewrite the playbook from it
- Is the service internet-facing or sensitive?YesUpgrade in the first waveNoUpgrade in a later wave
- Run OpenRewrite and the properties migratorreview security config by hand
- Test, canary, releasethen remove the migrator
- Track progress on a dashboarduntil no service is on 2.7
7 steps in order. Play them, or step through them one at a time.
6Targeting the Current Generation
Since the work of moving to Java 17, Jakarta and Security 6 is the same whichever Boot 3 or 4 version we target, we should go to the newest generation we can support, rather than to an early 3.x that will itself leave open-source support soon. If Boot 4 is current and our key libraries support it, moving the pilot to 3.5 first and then 4.0 in quick succession, or straight to 4.0, avoids a second large upgrade a year later. Where a library is not yet ready, landing on the latest 3.x is still a large improvement, and the routine upgrade policy takes it from there.
7Follow-up questions
Is buying commercial support a valid long-term answer?
It is a valid bridge, not a destination. It buys time for services that cannot move quickly and satisfies auditors, but the cost recurs every year, it covers Spring's projects rather than every third-party library, and the upgrade still has to happen. I would use it for a defined period with a dated upgrade plan.
How long does such an upgrade take per service?
With a playbook, upgraded shared libraries and OpenRewrite, a typical service with good tests often takes a few days to two weeks, mostly spent on Security configuration, Hibernate behaviour changes and libraries without Jakarta versions. The first pilot takes longer because it produces the playbook.
What do you do with a library that has no Jakarta version?
Look for a maintained replacement, a fork, or a newer major version under a different artifact name. If none exists, the Eclipse Transformer can rewrite a jar's javax references to jakarta as a stopgap, but a replacement is better for the long term.
8Conclusion
In this answer, we explained that Boot 2.7 and Framework 5.3 being past open-source support means no free security fixes, leaving commercial support or an upgrade. The jump to Boot 3 brings Java 17, javax to jakarta, Spring Security 6 and Hibernate 6 together, and OpenRewrite recipes plus the properties migrator automate much of it. We upgrade shared libraries first, then internet-facing and data-sensitive services, and target the current Boot generation to avoid a second big upgrade soon.
Open with
The risk is simple: Boot 2.7 and Framework 5.3 are past open-source support, so the next vulnerability in Spring, or in managed libraries like Tomcat or Jackson on those old lines, may only be fixed for current versions or for commercial support customers.
Then, if they want more
So we either pay for extended support, which only buys time, accept unpatched CVEs, which security will not allow for internet-facing systems, or upgrade. I would recommend upgrading, maybe with paid support as a bridge.
The jump to Boot 3 brings several changes at once: Java 17, javax to jakarta for servlets, JPA and validation plus Jakarta versions of libraries, Spring Security 6 where WebSecurityConfigurerAdapter is gone in favour of SecurityFilterChain beans, Hibernate 6 behaviour changes and renamed properties.
OpenRewrite has recipes that do most of the mechanical work as a reviewable diff, and the spring-boot-properties-migrator reports renamed properties at startup. Security config I would always review by hand. For the order, shared libraries and starters go first, because every service needs them, then a pilot service to write the playbook, then internet-facing and data-sensitive services, then the rest.
And I would target the current Boot generation directly where our libraries allow, so we do not face another big upgrade in a year.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 17, Spring Security 6, Hibernate 6, Spring Boot 2.7
- 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 "Your company still has 30 services on Spring Framework 5.3 and Spring Boot 2.7, which...": https://scrivio-interview-library.netlify.app/spring-boot/spring-framework-evolution/596bbda774/