Using @Component and @StepScope Together in Java Spring Batch | HackerNoonUsing both @Component and @StepScope annotations is acceptable in Spring but comes with lifecycle implications.