Skip to content

Commit a2145b2

Browse files
Update sing-step-batch-job version to 3.1.0
1 parent e48c0bc commit a2145b2

File tree

1 file changed

+10
-10
lines changed
  • spring-cloud-task-samples/single-step-batch-job

1 file changed

+10
-10
lines changed

spring-cloud-task-samples/single-step-batch-job/README.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ mvn clean package
3232

3333
[source,shell]
3434
----
35-
java -jar target/single-step-batch-job-3.0.0-SNAPSHOT.jar --spring.config.name=<property file containing batch, reader, and writer properties>
35+
java -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar --spring.config.name=<property file containing batch, reader, and writer properties>
3636
----
3737

3838
== Examples
3939

4040
=== FlatFileItemReader with a FlatFileItemWriter batch job
4141
In this example the batch job will read from the test.txt file from the resources directory and write a `result.txt` file to the root directory of the project.
4242
```
43-
java -Dspring.profiles.active=ffreader,ffwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
43+
java -Dspring.profiles.active=ffreader,ffwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
4444
```
4545

4646
=== FlatFileItemReader with a JdbcItemWriter batch job
4747
In this example the batch job will read from the test.txt file from the resources directory and write the result to the `item` table in your data store.
4848
```
49-
java -Dspring.profiles.active=ffreader,jdbcwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
49+
java -Dspring.profiles.active=ffreader,jdbcwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
5050
```
5151

5252
Before running create the following table:
@@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS item
6060
=== JdbcCursorItemReader with a JdbcItemWriter batch job
6161
In this example the batch job will read from the `item_sample` table in your data store (as specified in the default `DataSource` properties) and write the result to the `item` table in your data store (as specified in the default `DataSource` properties).
6262
```
63-
java -Dspring.profiles.active=jdbcreader,jdbcwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
63+
java -Dspring.profiles.active=jdbcreader,jdbcwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
6464
```
6565

6666
Before running create the following tables:
@@ -101,7 +101,7 @@ export spring_batch_job_jdbcbatchitemwriter_datasource_enable=true
101101
=== JdbcCursorItemReader with FlatfileItemWriter batch job
102102
In this example the batch job will read from the `item_sample` table in your data store and write the result to the `result.txt` file to the root directory of the project.
103103
```
104-
java -Dspring.profiles.active=jdbcreader,ffwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
104+
java -Dspring.profiles.active=jdbcreader,ffwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
105105
```
106106

107107
Before running create the following table:
@@ -122,23 +122,23 @@ INSERT INTO item_sample (item_name) VALUES ('Job');
122122
=== FlatfileItemReader with AmqpItemWriter batch job
123123
In this example the batch job will read from the `test.txt` file and write the result to the `sampleexchange` exchange.
124124
```
125-
java -Dspring.profiles.active=ffreader,amqpwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
125+
java -Dspring.profiles.active=ffreader,amqpwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
126126
```
127127

128128
NOTE: Before running create an exchange named `sampleexchange`.
129129

130130
=== AmqpItemReader with FlatfileItemWriter batch job
131131
In this example the batch job will read from the `samplequeue` queue and write the result to the `result.txt` in the current directory.
132132
```
133-
java -Dspring.profiles.active=amqpreader,ffwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
133+
java -Dspring.profiles.active=amqpreader,ffwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
134134
```
135135

136136
NOTE: Before running create and populate a queue named `samplequeue`.
137137

138138
=== FlatfileItemReader with KafkaItemWriter batch job
139139
In this example the batch job will read from the `test.txt` file and write the result to the `sampletopic` topic.
140140
```
141-
java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
141+
java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
142142
```
143143

144144
Before running create a topic named `sampletopic`. For example:
@@ -149,10 +149,10 @@ kafka-topics.sh --create --topic sampletopic --bootstrap-server localhost:9092
149149
=== KafkaItemReader with FlatfileItemWriter batch job
150150
In this example the batch job will read from the `sampletopic` topic and write the result to the `result.txt` in the current directory.
151151
```
152-
java -Dspring.profiles.active=kafkareader,ffwriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
152+
java -Dspring.profiles.active=kafkareader,ffwriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
153153
```
154154

155155
Before running populate the topic named `sampletopic`. For example populate it using the FlatfileItemReader and KafkaItemWriter from above:
156156
```
157-
java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-2.3.0-SNAPSHOT.jar
157+
java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-3.1.0-SNAPSHOT.jar
158158
```

0 commit comments

Comments
 (0)