Skip to content

Commit 08ddb59

Browse files
nishantrautsnicoll
authored andcommitted
Update documentation to remind how JobParameters should be specified
See gh-15081
1 parent f5ba995 commit 08ddb59

File tree

1 file changed

+2
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/main/asciidoc

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,8 @@ 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`).
2382+
23812383
If the application context includes a `JobRegistry`, the jobs in
23822384
`spring.batch.job.names` are looked up in the registry instead of being autowired from the
23832385
context. This is a common pattern with more complex systems, where multiple jobs are

0 commit comments

Comments
 (0)