Polish contribution

Closes gh-15081
This commit is contained in:
Stephane Nicoll
2018-11-04 07:59:26 +01:00
parent 08ddb59f92
commit 69d9b7a813

View File

@@ -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
`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
`spring.batch.job.names` are looked up in the registry instead of being autowired from the