Skip to content

Migrate Jackson properties for Spring Boot 4#963

Merged
timtebeek merged 1 commit intomainfrom
timtebeek/fix-issue-953
Mar 12, 2026
Merged

Migrate Jackson properties for Spring Boot 4#963
timtebeek merged 1 commit intomainfrom
timtebeek/fix-issue-953

Conversation

@timtebeek
Copy link
Member

@timtebeek timtebeek commented Mar 11, 2026

Summary

Adds automatic migration of Jackson feature properties that moved to new enums in Jackson 3 / Spring Boot 4. Properties like spring.jackson.serialization.write-dates-as-timestamps now migrate to spring.jackson.datatype.datetime.write-dates-as-timestamps, and enum-related properties migrate to the spring.jackson.datatype.enum.* namespace.

References

Test plan

  • Added migrateJacksonDateTimeProperties test covering datetime features in both .properties and .yml formats
  • Added migrateJacksonEnumProperties test for enum-related migrations
  • All existing tests pass

When upgrading to Spring Boot 4, Jackson 3 moved date/time and enum feature enums
to DateTimeFeature and EnumFeature respectively. Auto-migrate properties like
spring.jackson.serialization.write-dates-as-timestamps to the new structure
spring.jackson.datatype.datetime.write-dates-as-timestamps.

Fixes #953
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 11, 2026
@timtebeek timtebeek linked an issue Mar 11, 2026 that may be closed by this pull request
@timtebeek timtebeek merged commit ecac2fb into main Mar 12, 2026
1 check passed
@timtebeek timtebeek deleted the timtebeek/fix-issue-953 branch March 12, 2026 10:54
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Migrate Jackson Properties when upgrading to Boot 4

1 participant