Skip to content

Commit

Permalink
Polish contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Nov 4, 2018
1 parent 08ddb59 commit 69d9b7a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69d9b7a

Please sign in to comment.