Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreI am pleased to announce that Spring Batch 6.0.0-RC2 is now available from Maven Central!
This second release candidate introduces a long-awaited feature which is the use of contextual lambda expressions to configure batch artefacts. This new style of configuration provides a more concise and readable way to define item readers and writers.
For example, instead of using the traditional builder pattern like in the following snippet to define a delimited file reader:
var reader = new FlatFileItemReaderBuilder()
.resource(...)
.delimited()
.delimiter(",")
.quoteCharacter('"')
...
.build();
You can now use a lambda expression to configure the delimited options like this:
var reader = new FlatFileItemReaderBuilder()
.resource(...)
.delimited(config -> config.delimiter(',').quoteCharcter( '"' ))
...
.build();
This release also comes with several bug fixes, performance improvements and dependency upgrades.
For the complete list of changes, please check the release notes.
I would like to thank all contributors who had a role in this release! As we continue our work on Spring Batch 6, we look forward to your feedback on Github Issues, Github Discussions and X.