File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
skeletonBatch/src/main/java/com/example/batch Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,7 @@ public Job createSampleJob() {
3232 .build ();
3333
3434 // Build and return the job
35- Job myJob =
36- new JobBuilder ("sample-job" , jobRepository )
37- .start (myStep )
38- .build ();
35+ Job myJob = new JobBuilder ("sample-job" , jobRepository ).start (myStep ).build ();
3936
4037 log .info ("----------- Job registered successfully: {} -----------" , myJob .getName ());
4138
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ public class SampleLogic implements Tasklet {
1616 private final SampleService sampleService ;
1717
1818 @ Override
19- public RepeatStatus execute (StepContribution contribution ,
20- ChunkContext chunkContext ) throws Exception {
19+ public RepeatStatus execute (StepContribution contribution , ChunkContext chunkContext )
20+ throws Exception {
2121 log .info ("----------- START ----------- Batch Processing -----------" );
2222
2323 try {
You can’t perform that action at this time.
0 commit comments