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
Note that `SpringApplication.exit()` and `System.exit()` ensure that the JVM exits upon job completion.
189
189
See the https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-application-exit[Application Exit section in Spring Boot Reference documentation] for more details.
190
190
191
-
For demonstration purposes, there is code to create a `JdbcTemplate`, query the database,
191
+
For demonstration purposes, there is code to inject a `JdbcTemplate`, query the database,
192
192
and print out the names of people the batch job inserts.
193
193
194
194
[NOTE]
195
195
====
196
196
Note how the application does not use the `@EnableBatchProcessing` annotation.
197
197
Previously, `@EnableBatchProcessing` could be used to enable Spring Boot's auto-configuration of Spring Batch.
198
-
Starting from Spring Boot v3.0, this annotation is no longer required and should be removed from applications that want to use Spring Boot's auto-configuration.
199
198
A bean that is annotated with `@EnableBatchProcessing` or that extends Spring Batch's `DefaultBatchConfiguration` can now be defined to tell the auto-configuration
200
199
to back off, allowing the application to take complete control of how Spring Batch is configured.
201
200
====
@@ -216,11 +215,11 @@ Converting (Person[firstName=Joe, lastName=Doe]) into (Person[firstName=JOE, las
216
215
Converting (Person[firstName=Justin, lastName=Doe]) into (Person[firstName=JUSTIN, lastName=DOE])
217
216
Converting (Person[firstName=Jane, lastName=Doe]) into (Person[firstName=JANE, lastName=DOE])
218
217
Converting (Person[firstName=John, lastName=Doe]) into (Person[firstName=JOHN, lastName=DOE])
219
-
Found <{Person[firstName=JILL, lastName=DOE]}> in the database.
220
-
Found <{Person[firstName=JOE, lastName=DOE]}> in the database.
221
-
Found <{Person[firstName=JUSTIN, lastName=DOE]}> in the database.
222
-
Found <{Person[firstName=JANE, lastName=DOE]}> in the database.
223
-
Found <{Person[firstName=JOHN, lastName=DOE]}> in the database.
218
+
Found <Person[firstName=JILL, lastName=DOE]> in the database.
219
+
Found <Person[firstName=JOE, lastName=DOE]> in the database.
220
+
Found <Person[firstName=JUSTIN, lastName=DOE]> in the database.
221
+
Found <Person[firstName=JANE, lastName=DOE]> in the database.
222
+
Found <Person[firstName=JOHN, lastName=DOE]> in the database.
0 commit comments