We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit 219fee3 modified some code examples for the API introduced in v5. Some of those examples won't compile now.
See sections:
Example:
@Bean public Job sampleJob(JobRepository jobRepository) { return new JobBuilder("sampleJob", jobRepository) .start(step1()) .build(); } @Bean public Step step1(JobRepository jobRepository, PlatformTransactionManager transactionManager) { return new StepBuilder("step1", jobRepository) .<String, String>chunk(10, transactionManager) .reader(itemReader()) .writer(itemWriter()) .build(); }
In the sampleJob bean, there is a method call to step1(). But as you see, it does not provide JobRepository and PlatformTransactionManager parameters.
sampleJob
step1()
To fix it, those parameters should be provided, or perhaps the sampleJob method should autowire the step1 bean instead.
step1
The text was updated successfully, but these errors were encountered:
Good catch! I have previously created #4205 to avoid this kind of issues. Thank you for reporting it anyway.
Sorry, something went wrong.
29d5747
Successfully merging a pull request may close this issue.
Commit 219fee3 modified some code examples for the API introduced in v5. Some of those examples won't compile now.
See sections:
Example:
In the
sampleJob
bean, there is a method call tostep1()
. But as you see, it does not provide JobRepository and PlatformTransactionManager parameters.To fix it, those parameters should be provided, or perhaps the
sampleJob
method should autowire thestep1
bean instead.The text was updated successfully, but these errors were encountered: