You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-batch-docs/modules/ROOT/pages/whatsnew.adoc
+61-6
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[[whatsNew]]
2
2
= What's New in Spring Batch 5.1
3
3
4
-
This section shows the major highlights of Spring Batch 5.1.
4
+
This section shows the major highlights of Spring Batch 5.1. For the complete list of changes, please refer to the https://github.com/spring-projects/spring-batch/releases[release notes].
5
5
6
6
Spring Batch 5.1 introduces the following features:
7
7
@@ -11,17 +11,24 @@ Spring Batch 5.1 introduces the following features:
11
11
* xref:whatsnew.adoc#new-synchronized-decorators[New synchronized decorators for item readers and writers]
=== Automatic configuration of JobRegistryBeanPostProcessor
103
+
104
+
When configuring a `JobOperator` in a Spring Batch application, it is necessary to register the jobs in the operator's `JobRegistry`.
105
+
This registration process is either done manually or automatically by adding a `JobRegistryBeanPostProcessor` bean to the application
106
+
context.
107
+
108
+
In this release, the default configuration of Spring Batch (ie by using `@EnableBatchProcessing` or extending `DefaultBatchConfiguration`)
109
+
now automatically registers a `JobRegistryBeanPostProcessor` bean to the application context. This simplifies the configuration process
110
+
and improves the user experience when using a `JobOperator`.
111
+
112
+
[[ability-to-start-a-job-flow-with-a-decision]]
113
+
=== Ability to start a job flow with a decision
114
+
115
+
When using the XML configuration style, it is possible to start a job flow with a decider thanks to the `<decision>` element.
116
+
However, up to version 5.0, it was not possible to achieve the same flow definition with the Java API.
117
+
118
+
In this release, a new option to start a job flow with a `JobExecutionDecider` was added to the `JobBuilder` API.
119
+
This makes both configuration styles more consistent.
120
+
121
+
[[ability-to-provide-a-custom-jobkeygenerator]]
122
+
=== Ability to provide a custom JobKeyGenerator
123
+
124
+
By default, Spring Batch identifies job instances by calculating an MD5 hash of the identifying job parameters. While it is unlikely to
125
+
need to customize this identification process, Spring Batch still provide a strategy interface for users to override the default mechanism
126
+
through the `JobKeyGenerator` API.
127
+
128
+
Up to version 5.0, it was not possible to provide a custom key generator without having to create a custom `JobRepository` and `JobExplorer`.
129
+
In this version, it is now possible to provide a custom `JobKeyGenerator` through the factory beans of `JobRepository` and `JobExplorer`.
130
+
131
+
[[new-documentation-based-on-antora]]
132
+
=== New documentation based on Antora
133
+
134
+
The reference documentation was updated to use https://antora.org[Antora]. This update introduces a number of improvements, including but not limited to:
135
+
136
+
* Multi-version documentation: it is now possible to navigate from one version to another thanks to the drop down version list in the left side menu.
137
+
* Integrated search experience: powered by https://docsearch.algolia.com/[Algolia], the search experience in now better thanks to the integrated search box at the top left of the page
138
+
* Improved configuration style toggle: the toggle to switch between the XML and Java configuration styles for code snippets is now located near each sample, rather than the top of each page
0 commit comments