https://github.com/making/spring-boot-batch-multi-jobs
https://github.com/making/spring-boot-batch-multi-jobs
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/making/spring-boot-batch-multi-jobs
- Owner: making
- Created: 2017-01-27T01:35:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T01:35:47.000Z (about 9 years ago)
- Last Synced: 2025-04-06T07:37:30.920Z (about 1 year ago)
- Language: Shell
- Size: 56.6 KB
- Stars: 20
- Watchers: 3
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Build
```
$ ./mvnw clean package -DskipTests=true
```
### Run all jobs
```
$ java -jar target/spring-boot-batch-multi-jobs-0.0.1.RELEASE.jar
```
### Run only specified jobs
#### Only job1
```
$ java -jar target/spring-boot-batch-multi-jobs-0.0.1.RELEASE.jar --spring.batch.job.names=job1
```
#### Only job2
```
$ java -jar target/spring-boot-batch-multi-jobs-0.0.1.RELEASE.jar --spring.batch.job.names=job2
```
#### job1 and job2
```
$ java -jar target/spring-boot-batch-multi-jobs-0.0.1.RELEASE.jar --spring.batch.job.names=job1,job2
```