Spring Boot use cases

Spring Boot 2 to 3 and javax to jakarta: three situations we are asked to handle.

Typical situations we're asked to handle. Client work is confidential; see American National for a published project.

Spring BootJakarta EE

The short answer

Teams call Ace8 about Spring Boot 2 to 3 when a date, a vulnerability or a blocked dependency forces the work. Three situations come up most: Spring Boot 2.7 has left open-source support, a security review cites a Spring flaw, or a javax-only library stops the upgrade. We start with tests, then run OpenRewrite recipes and review every diff.

Which Spring Boot situation are you in?

Three typical situations, each with its trigger and first step. The sections below cover the risks, the approach and the fit.

Use caseTriggerFirst step
Spring Boot 2.7 has left open-source support, apps still on itBoot 2.7 open-source support ended 30 Jun 2023Fixed-price assessment
A security review cites an old Spring flaw in a legacy serviceCVE-2022-22965 is on the CISA KEV listFixed-price assessment
A javax-only library blocks the move to Jakarta and Spring Boot 3javax became jakarta from Jakarta EE 9Fixed-price assessment

What should you do when Spring Boot 2.7 is out of open-source support?

Decide per application whether to buy commercial support or migrate. Migration to Spring Boot 3 needs Java 17, the jakarta namespace and Spring Security 6. Move first to the last 2.7 patch, add tests, then migrate in slices with each step reversible.

SituationSpring Boot 2.7 has left open-source support, apps still on it
TriggerBoot 2.7 open-source support ended 30 Jun 2023
First stepFixed-price assessment, tests before any change
Delivered byThe AceMQ engineering team
ServiceSpring Boot 3 migration

The situation

A platform or engineering lead runs dozens of Spring Boot 2.7 services. The business wants a date and a cost for getting them onto a supported line. A few services are critical, many are small, and several have thin test coverage.

What makes it urgent

Spring's support timeline lists open-source support for Boot 2.7.x as ended on 30 June 2023, with paid commercial support to 30 June 2029. The same table shows open-source support for 3.5.x ended on 30 June 2026, so a move to Boot 3 today lands on a line that also needs paid support. The migration guide says to upgrade to the latest 2.7.x first.

Risks and constraints

  • Boot 3 needs Java 17 or later, so services on Java 8 or 11 have two upgrades to do.
  • The javax to jakarta change touches imports, dependencies and configuration across every service.
  • Spring Security 6 and Hibernate 6 change behavior, not just names.
  • Services with few tests cannot show that the migrated version behaves the same.

How Ace8 handles it

Step 1

Assess

Fixed-price first phase. We inventory services, Java versions, blocking libraries and test coverage, then sort services into migrate, pay for support, or retire.

Step 2

Migrate

Characterization tests first. OpenRewrite recipes make the mechanical edits. Senior engineers review configuration and security changes. We cut over in slices and keep each step reversible.

Step 3

Run

AceMQ runs and supports the migrated services 24/7. Services you leave on 2.7 are in the inventory with a date for review.

What you get

  • Service inventory with Java, Spring and blocker data
  • Migrate, support or retire decision per service
  • Characterization tests for the first services in scope
  • First service migrated and reviewed, with a repeatable recipe set
  • Runbook and support handover

A fit when

  • You have many Boot 2.7 services and need a sequence, not one big rewrite.
  • You want a clear comparison between paying for support and migrating.

Not a fit when

  • You have two stable services and a commercial support contract that covers your risk.
  • The service is due for retirement soon.

Sources

What do you do when a security review finds an old Spring Framework CVE?

Patch the affected Spring Framework version first, because the fix is available. Then ask why the service was on an old release, and plan the Boot 3 migration so the next advisory does not need an emergency patch.

SituationA security review cites an old Spring flaw in a legacy service
TriggerCVE-2022-22965 is on the CISA KEV list
First stepFixed-price assessment, tests before any change
Delivered byThe AceMQ engineering team
ServiceSpring Boot 3 migration

The situation

A security lead has a scanner finding or a pen-test report naming Spring4Shell, CVE-2022-22965. The service is a WAR on Tomcat, last touched years ago. The owner left. Patching is possible, but nobody knows what else would break.

What makes it urgent

Spring says CVE-2022-22965 affects Spring Framework 5.3.0 to 5.3.17 and 5.2.19 and earlier, under JDK 9 or higher, with fixes in 5.3.18 and 5.2.20. CISA's KEV catalog lists it, added 4 April 2022.

Risks and constraints

  • Spring's advisory lists specific conditions, so a scanner can flag a service that is not exploitable and miss one that is.
  • A patch on a service with no tests cannot be shown to be safe.
  • The service may rely on libraries that block the jump to a newer Spring line.
  • Nobody owns the service, so nobody knows how it is deployed.

How Ace8 handles it

Step 1

Assess

Fixed-price first phase. We check the service against the advisory's conditions, record its Spring, Java and Tomcat versions, and list what blocks a patch or a migration.

Step 2

Fix

Patch to the fixed Spring version behind characterization tests, with senior engineer review. Then plan the move to Boot 3 as a separate step.

Step 3

Run

AceMQ supports the service after the change, with the dependency list kept current so the next advisory is a short check.

What you get

  • Exposure check against the advisory's conditions
  • Patched build with test evidence
  • Dependency and ownership record for the service
  • Migration plan to a supported Boot line
  • Short note for the security team

A fit when

  • A named CVE is open against a service nobody wants to touch.
  • You want the patch and the longer plan from the same team.

Not a fit when

  • You only need the patch and have tests that prove it. Do it in-house.
  • The scanner finding does not match the advisory's conditions and your security team has accepted that.

Sources

How do you migrate to jakarta when a key library still uses javax?

List every dependency that touches javax and check each for a jakarta release. Upgrade, replace or isolate those that lack one. Run the namespace change with OpenRewrite behind tests, and treat a dependency with no jakarta version as a decision, not a detail.

SituationA javax-only library blocks the move to Jakarta and Spring Boot 3
Triggerjavax became jakarta from Jakarta EE 9
First stepFixed-price assessment, tests before any change
Delivered byThe AceMQ engineering team
ServiceSpring Boot 3 migration

The situation

A team started the Spring Boot 3 upgrade and stopped. A reporting, PDF or security library still imports javax classes. Some modules compile, some fail at runtime, and the project has lost momentum.

What makes it urgent

Apache's Tomcat migration guide calls the move from javax to jakarta a significant breaking change that needs web applications to be recompiled. The Spring Boot 3.0 migration guide says to switch to Jakarta EE and notes OpenRewrite can help.

Risks and constraints

  • A library with no jakarta release forces a replacement or a fork.
  • Runtime failures appear in code paths the tests never exercise.
  • Transitive dependencies pull in javax classes that source search does not show.
  • Config files and XML descriptors carry the old namespace too.

How Ace8 handles it

Step 1

Assess

Fixed-price first phase. We scan source and dependency trees for javax use, check each library for a jakarta version, and sort them into upgrade, replace or isolate.

Step 2

Migrate

Characterization tests first. OpenRewrite recipes handle the namespace edits. Senior engineers review replaced libraries and any shim. Changes ship in slices.

Step 3

Run

AceMQ supports the migrated application 24/7 and keeps the dependency register current.

What you get

  • Dependency register showing javax use and jakarta status
  • Decision per blocking library: upgrade, replace or isolate
  • Recipe set tuned to your code base
  • Migrated slice with tests
  • Plan for the remaining modules

A fit when

  • You know one or two libraries are the problem but not how many.
  • You need a decision on replacing a library that has no jakarta version.

Not a fit when

  • Every dependency already has a jakarta release and your tests are strong. A recipe run in-house may be enough.
  • The blocked module is about to be removed.

Sources

Frequently asked questions

When did Spring Boot 2.7 open-source support end?

Spring's support timeline lists open-source support for 2.7.x as ended on 30 June 2023, with paid commercial support to 30 June 2029. Check the current terms with the vendor.

Do we have to upgrade Java before Spring Boot 3?

Yes. The Spring Boot 3.0 migration guide says Boot 3.0 requires Java 17 or later. Teams on Java 8 or 11 do the runtime upgrade first, as its own release.

What should we upgrade to first?

The migration guide says to upgrade to the latest 2.7.x version first, so you build against the newest 2.7 dependencies. Then move to Java 17, jakarta and Spring Security 6.

Is a service on Spring4Shell's affected versions automatically exploitable?

Not automatically. Spring's advisory lists conditions: JDK 9 or higher, Tomcat as the container, WAR packaging and a spring-webmvc or spring-webflux dependency. Check each service against those conditions, and patch to a fixed version.

Get a fixed scope and price before anything moves.

A fixed-price assessment gives you the inventory, the risk score and a phased plan.