Remove redundant full stops and fix broken list

This commit is contained in:
Simonas Viliunas 2018-01-09 21:33:42 +02:00 committed by Mahmoud Ben Hassine
parent b08886e782
commit ec6da02548
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

View File

@ -99,11 +99,12 @@ Break it down:
---- ----
include::/complete/src/main/java/hello/BatchConfiguration.java[tag=readerwriterprocessor] include::/complete/src/main/java/hello/BatchConfiguration.java[tag=readerwriterprocessor]
---- ----
.
The first chunk of code defines the input, processor, and output. The first chunk of code defines the input, processor, and output.
- `reader()` creates an `ItemReader`. It looks for a file called `sample-data.csv` and parses each line item with enough information to turn it into a `Person`.
- `processor()` creates an instance of our `PersonItemProcessor` you defined earlier, meant to uppercase the data. * `reader()` creates an `ItemReader`. It looks for a file called `sample-data.csv` and parses each line item with enough information to turn it into a `Person`.
- `write(DataSource)` creates an `ItemWriter`. This one is aimed at a JDBC destination and automatically gets a copy of the dataSource created by `@EnableBatchProcessing`. It includes the SQL statement needed to insert a single `Person` driven by Java bean properties. * `processor()` creates an instance of our `PersonItemProcessor` you defined earlier, meant to uppercase the data.
* `write(DataSource)` creates an `ItemWriter`. This one is aimed at a JDBC destination and automatically gets a copy of the dataSource created by `@EnableBatchProcessing`. It includes the SQL statement needed to insert a single `Person` driven by Java bean properties.
The next chunk focuses on the actual job configuration. The next chunk focuses on the actual job configuration.
@ -112,7 +113,7 @@ The next chunk focuses on the actual job configuration.
---- ----
include::/complete/src/main/java/hello/BatchConfiguration.java[tag=jobstep] include::/complete/src/main/java/hello/BatchConfiguration.java[tag=jobstep]
---- ----
.
The first method defines the job and the second one defines a single step. Jobs are built from steps, where each step can involve a reader, a processor, and a writer. The first method defines the job and the second one defines a single step. Jobs are built from steps, where each step can involve a reader, a processor, and a writer.
In this job definition, you need an incrementer because jobs use a database to maintain execution state. You then list each step, of which this job has only one step. The job ends, and the Java API produces a perfectly configured job. In this job definition, you need an incrementer because jobs use a database to maintain execution state. You then list each step, of which this job has only one step. The job ends, and the Java API produces a perfectly configured job.