How to Create Spring Batch separate class implementation for Item Reader
I am new to spring batch and i have created basic batch implementation where I have added flat file item reader and reading data from csv file and then writing data to data base using item write.
But all the beans are present in batch config itself so, wanted to create separate class for item reader and item writer and mark them as component and the I can Autowire in my batch config class.
By doing this I can have multiple jobs config in same class and implementation of reader and writer in separate classes.