Allow overriding JobParametersConverter for spring batch auto-configuration #44793
Labels
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Since spring-projects/spring-batch#4650 (comment) is closed and there is an way to override the
JobParametersConverter
inorg.springframework.batch.core.configuration.support.DefaultBatchConfiguration
it would be very convenient if spring boot auto configuration also allows this.Right now
class BatchAutoConfiguration.SpringBootBatchConfiguration
does not overrideprotected JobParametersConverter getJobParametersConverter()
spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchAutoConfiguration.java
Line 99 in 4a2c26e
And the only alternative workaround is to utilize the
BatchConversionServiceCustomizer
and install converters per type, while most parameter objects are data classes, and can easily be handled by json serialization.Explained in details here
cc: @fmbenhassine
The text was updated successfully, but these errors were encountered: