Commit 69d9b7a8 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish contribution

Closes gh-15081
parent 08ddb59f
...@@ -2378,7 +2378,15 @@ By default, it executes *all* `Jobs` in the application context on startup (see ...@@ -2378,7 +2378,15 @@ By default, it executes *all* `Jobs` in the application context on startup (see
for details). You can narrow down to a specific job or jobs by specifying for details). You can narrow down to a specific job or jobs by specifying
`spring.batch.job.names` (which takes a comma-separated list of job name patterns). `spring.batch.job.names` (which takes a comma-separated list of job name patterns).
Unlike command line option arguments (which starts with `--`, e.g. `--spring=batch`) job parameters has to be passed without dashes to job (e.g. `spring=batch`). [TIP]
.Specifying job parameters on the command line
====
Unlike command line option arguments that
<<spring-boot-features.adoc#boot-features-external-config-command-line-args,set properties
in the `Environment`>> (i.e. by starting with `--`, such as
`--my-property=value`), job parameters have to be specified on the command line without
dashes (e.g. `jobParam=value`).
====
If the application context includes a `JobRegistry`, the jobs in If the application context includes a `JobRegistry`, the jobs in
`spring.batch.job.names` are looked up in the registry instead of being autowired from the `spring.batch.job.names` are looked up in the registry instead of being autowired from the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment