Skip to content

Commit ec6da02

Browse files
vilisimofmbenhassine
authored andcommitted
Remove redundant full stops and fix broken list
1 parent b08886e commit ec6da02

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.adoc

+6-5
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ Break it down:
9999
----
100100
include::/complete/src/main/java/hello/BatchConfiguration.java[tag=readerwriterprocessor]
101101
----
102-
.
102+
103103
The first chunk of code defines the input, processor, and output.
104-
- `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`.
105-
- `processor()` creates an instance of our `PersonItemProcessor` you defined earlier, meant to uppercase the data.
106-
- `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.
104+
105+
* `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`.
106+
* `processor()` creates an instance of our `PersonItemProcessor` you defined earlier, meant to uppercase the data.
107+
* `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.
107108

108109
The next chunk focuses on the actual job configuration.
109110

@@ -112,7 +113,7 @@ The next chunk focuses on the actual job configuration.
112113
----
113114
include::/complete/src/main/java/hello/BatchConfiguration.java[tag=jobstep]
114115
----
115-
.
116+
116117
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.
117118

118119
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.

0 commit comments

Comments
 (0)