Skip to content

Conversation

@scordio
Copy link
Contributor

@scordio scordio commented Dec 28, 2025

This change replaces almost all existing custom converters with the Spring Framework's DefaultFormattingConversionService built-in features. The Date converters have been replaced with a custom formatter because the existing Spring Batch logic is incompatible with what the framework can offer.

DefaultFormattingConversionService also supports ZonedDateTime and OffsetDateTime out of the box; therefore, this PR also resolves #5178 and is an alternative to #5179.

@scordio

This comment was marked as outdated.

@scordio scordio force-pushed the gh-5178-DefaultFormattingConversionService branch from b8a8484 to 4aa4807 Compare December 29, 2025 08:55
@scordio scordio marked this pull request as ready for review December 29, 2025 08:59
Comment on lines +30 to +32
* @deprecated since 6.1 in favor of
* {@link ConversionServiceFactory#createConversionService()}. Scheduled for removal in
* 6.3 or later.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all existing converters are public, I proposed deprecating them for removal in 6.3. Let me know if I should make any adjustments to it.

@scordio scordio force-pushed the gh-5178-DefaultFormattingConversionService branch from 4aa4807 to 4725c88 Compare December 29, 2025 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ZonedDateTime and OffsetDateTime support to JobParametersConverter

1 participant