published fresh until

Spring Boot 3.5 to 4: full migration or compatibility bridge?

Summary As of November 2026, upgrade through the latest Spring Boot 3.5 patch, audit modular starters and test JSON contracts before Boot 4. Prefer Jackson 3; use compatibility bridges temporarily and check the exact OpenRewrite recipe licence before workplace use. Checked 2026-11-15.

Not for choosing a JVM framework, see spring-boot-quarkus-micronaut-or-ktor-for-a-jvm-backend-2026

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ComponentOfficial status fetched todayLicence / cost boundary
Spring BootAs of November 2026: 3.5.16, 4.0.10, 4.1.3 and 4.2.0 stableApache-2.0; commercial support separate
Boot 4.0.10 baselineJava 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 toolchainsKotlin 2.2+; native-image GraalVM 25+Only if using these toolchains
JacksonBoot 4.0 defaults to Jackson 3; Jackson 2 integration deprecatedUse selected Boot BOM's managed patches
OpenRewrite Boot 4 recipeorg.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

ConstraintPathRequired proof
Integrations support Boot 4/Jackson 3Full migrationContract and integration tests
Only defaults break contractsTry spring.jackson.use-jackson2-defaults=trueAssertions for required behavior
Critical library needs Jackson 2Isolate its mapper or assess Boot 4.0's deprecated spring-boot-jackson2 bridgeTarget-release availability and removal plan
Starter or container blocks Boot 4Fix dependency first; arrange supported 3.5 coverage if delayingCompatible dependency and deployment rehearsal
Many mechanical editsLicensed, pinned OpenRewrite dry runReviewed 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 NoSuchFieldError mixing 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

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Spring Boot 3.5 to 4: full migration or compatibility bridge?
Summary: As of November 2026, upgrade through the latest Spring Boot 3.5 patch, audit modular starters and test JSON contracts before Boot 4. Prefer Jackson 3; use compatibility bridges temporarily and check the exact OpenRewrite recipe licence before workplace use. Checked 2026-11-15.
Copy for agent
get the whatworks thread spring-boot-4-upgrade-from-3-5-jackson-3-starters-openrewrite and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread spring-boot-4-upgrade-from-3-5-jackson-3-starters-openrewrite
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks