Custom ItemReader with spring-data-jpa
问题 I'm creating a Spring batch project using existing entities and repositories. I need to use custom ItemReader for the job which reads data using the existing jpa repositories. Custom reader public class InMemoryReader implements ItemReader<Product> { @Autowired private ProductService productService; private int nextStudentIndex; private List<Product> studentData; public InMemoryReader() { initialize(); } private void initialize() { studentData = new ArrayList<Product>(); studentData.add(new