Skip to content

Commit 69d9b7a

Browse files
committed
Polish contribution
Closes spring-projectsgh-15081
1 parent 08ddb59 commit 69d9b7a

File tree

1 file changed

+9
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/main/asciidoc

1 file changed

+9
-1
lines changed

Diff for: spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

+9-1
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,15 @@ By default, it executes *all* `Jobs` in the application context on startup (see
23782378
for details). You can narrow down to a specific job or jobs by specifying
23792379
`spring.batch.job.names` (which takes a comma-separated list of job name patterns).
23802380

2381-
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`).
2381+
[TIP]
2382+
.Specifying job parameters on the command line
2383+
====
2384+
Unlike command line option arguments that
2385+
<<spring-boot-features.adoc#boot-features-external-config-command-line-args,set properties
2386+
in the `Environment`>> (i.e. by starting with `--`, such as
2387+
`--my-property=value`), job parameters have to be specified on the command line without
2388+
dashes (e.g. `jobParam=value`).
2389+
====
23822390

23832391
If the application context includes a `JobRegistry`, the jobs in
23842392
`spring.batch.job.names` are looked up in the registry instead of being autowired from the

0 commit comments

Comments
 (0)