What this thread does
The problem
Your Spring Boot 3.5 service works, but upgrading to 4 breaks imports, JSON contracts or auto-configuration. Choose a full Jackson 3 migration, a temporary bridge, or a supported delay while preserving service behavior.
Versions, licences and support, checked 2026-11-15
| Component | Official status fetched today | Licence / cost boundary |
|---|---|---|
| Spring Boot | As of November 2026: 3.5.16, 4.0.10, 4.1.3 and 4.2.0 stable | Apache-2.0; commercial support separate |
| Boot 4.0.10 baseline | Java 17+, Framework 7.0.11+, Maven 3.6.3+ or Gradle 8.14+/9.x; Servlet 6.1+ | Check deployment container as well as compiler |
| Optional toolchains | Kotlin 2.2+; native-image GraalVM 25+ | Only if using these toolchains |
| Jackson | Boot 4.0 defaults to Jackson 3; Jackson 2 integration deprecated | Use selected Boot BOM's managed patches |
| OpenRewrite Boot 4 recipe | org.openrewrite.java.spring.boot4.UpgradeSpringBoot_4_0 (“Migrate to Spring Boot 4.0”) | Moderne Source Available License; customer-only artifacts; source builds under MSAL; price unverified |
Sources are the Boot index, requirements, migration guide, JSON reference and recipe catalog. A patch listing does not prove support. Verify entitlement and deadlines before delaying; exact end dates remain unverified.
When to pick which
| Constraint | Path | Required proof |
|---|---|---|
| Integrations support Boot 4/Jackson 3 | Full migration | Contract and integration tests |
| Only defaults break contracts | Try spring.jackson.use-jackson2-defaults=true | Assertions for required behavior |
| Critical library needs Jackson 2 | Isolate its mapper or assess Boot 4.0's deprecated spring-boot-jackson2 bridge | Target-release availability and removal plan |
| Starter or container blocks Boot 4 | Fix dependency first; arrange supported 3.5 coverage if delaying | Compatible dependency and deployment rehearsal |
| Many mechanical edits | Licensed, pinned OpenRewrite dry run | Reviewed diff plus behavioral tests |
Jackson and modular starters
Spring's Jackson guidance moves most packages/group IDs from com.fasterxml.jackson to tools.jackson, except annotations. Customization moves toward immutable JsonMapper builders. Property sorting and date defaults can affect output; compare actual Boot-managed behavior. The defaults flag approximates prior settings, not old APIs or identical bytes.
Temporary Jackson 2 settings use spring.jackson2.*. With both generations present, select the intended converter/codec mapper and verify it through HTTP tests.
Spring's modularity guide explains why a third-party jar alone may no longer activate integration. MVC uses spring-boot-starter-webmvc with test-scoped spring-boot-starter-webmvc-test. Audit Flyway/Liquibase starters, security test support, relocated imports and internal starters in both dependency graphs.
What the community says
- In jackson-databind #5454, stevenschlansker reports
NoSuchFieldErrormixing generations with older shared annotations. Member pjfanning recommends aligning annotations; the reporter replies “Awesome, thanks, I think that works.” Inspect resolved dependencies rather than copy that historical dependency set. - In Boot #47315, donalmurtagh reports Flyway scripts not running during a milestone upgrade despite retaining Flyway dependencies. Closed 2025-09-25 as not planned/invalid; the starter resolved it. Official docs explain the starter requirement; this historical report does not prove a current bug.
Recommendation by constraint
1. Baseline first. Follow Spring's guide through the latest available 3.5 patch and resolve deprecations. Retain a known-good artifact/configuration. Inventory third-party starters, Jackson modules and containers before changing the BOM. Java 21 is not universally required; Undertow support is dropped in the 4.0 transition. 2. Protect contracts. Capture sanitized 3.5 fixtures for dates/time zones, null/absent fields, enums, naming, polymorphism, custom serializers and errors. Test requests, responses and outbound clients. Assert JSON semantics normally and exact bytes where signatures or strict consumers require them. 3. Review mechanical edits. Use a Boot 4.0 maintenance target as the diagnostic step documented by Spring. Before OpenRewrite, verify artifact terms/entitlement, pin recipe/plugin versions and review a dry-run diff; otherwise edit manually. Separate build/starter/import edits from intentional JSON changes. 4. Fix configuration and integrations. Temporarily add spring-boot-properties-migrator at runtime under Boot dependency management. Start representative profiles, read diagnostics and fix source configuration. Remove it and restart to prove temporary remapping is unnecessary. Exercise MVC/security slices, full context startup, HTTP payloads, health checks and migration startup against disposable test resources. 5. Use the narrowest bridge. Prefer Jackson 3; if only defaults differ, test the defaults flag before retaining an old mapper. For a library needing Jackson 2, identify mapper owners and consumers. Do not assume Boot 4.0 bridges survive later minors. For deployment on 4.1.1, resolve removals/changes in the 4.1 release notes and rerun the suite there. 6. Rehearse rollback. Canary with agreed error, latency and contract gates. Retain the 3.5 artifact and matching configuration. Prove it can read newly written JSON/messages and use the resulting schema. Keep incompatible schema/data changes separate; reverting a jar cannot undo them. Restore traffic/artifact/configuration on failed gates only when compatibility is proven; otherwise stop rollout and use the rehearsed recovery plan.
A prompt to give your agent
Inspect build, starters, Jackson customization, profiles and tests. Propose reviewable 3.5-to-4 steps with official sources checked today. List blockers and licence requirements before a pinned OpenRewrite dry run. Preserve JSON fixtures and prove which mapper serves HTTP. Include properties-migrator removal, integration tests, final-target release notes and rollback gates. Mark unknown dates and anything untested. Do not deploy.
Mistakes to check
- Blind namespace replacement breaks annotation imports; inspect shared annotations for linkage errors.
- Compilation passes while auto-configuration disappears; verify main/test starters and migration execution on disposable resources.
- Regenerating snapshots until green; explain contract differences and obtain consumer agreement first.
- Leaving properties-migrator installed; remove it and restart representative profiles to expose stale configuration.
- Assuming engine and recipe licences match; inspect the exact artifact before workplace use.
- Calling a version edit rollback; restore the tested artifact/config pair and verify persisted-data compatibility.
Limits
No builds, recipes, migration tests, deployments or rollback drills were run. Checked 2026-11-15. Exact support deadlines, commercial prices and third-party compatibility remain unverified. Community evidence is thin: two historical issues, without a measured success rate.
Started from a post by @stevenschlansker, packaged by the editor. Original post