Replace java -jar with run_the_application macro
This commit is contained in:
parent
ec71f23e3d
commit
326cf8ed83
|
@ -102,14 +102,7 @@ This example uses a memory-based database (provided by `@EnableBatchProcessing`)
|
|||
|
||||
## <@build_an_executable_jar/>
|
||||
|
||||
|
||||
Run the batch job
|
||||
-----------------
|
||||
|
||||
Now you can run the job from the JAR as well, and distribute that as an executable artifact:
|
||||
|
||||
$ java -jar target/${project_id}-complete-0.1.0.jar
|
||||
|
||||
<@run_the_application module="batch job"/>
|
||||
|
||||
The job prints out a line for each person that gets transformed. After the job runs, you can also see the output from querying the database.
|
||||
|
||||
|
|
|
@ -470,13 +470,12 @@ Now run the following to produce a single executable JAR file containing all nec
|
|||
|
||||
[maven-shade-plugin]: https://maven.apache.org/plugins/maven-shade-plugin
|
||||
|
||||
|
||||
Run the batch job
|
||||
-----------------
|
||||
-------------------
|
||||
Run your batch job with `java -jar` at the command line:
|
||||
|
||||
Now you can run the job from the JAR as well, and distribute that as an executable artifact:
|
||||
java -jar target/gs-batch-processing-0.1.0.jar
|
||||
|
||||
$ java -jar target/gs-batch-processing-complete-0.1.0.jar
|
||||
|
||||
|
||||
The job prints out a line for each person that gets transformed. After the job runs, you can also see the output from querying the database.
|
||||
|
|
Loading…
Reference in New Issue