Spring batch Retrieve the list of objects from file and return of a single line in output file
问题 I read a CSV file as input using spring batch and i have 2 CSV file as output. The first file contains about 100 lines. the input file contains 5 colones id,typeProduct and price. And i have just 2 type of product i route through all these lines and i write two output files. For both files a single line containing the type of product and the sum of the prices of all these products which have the same type. So my need is before writing in the output files. i want to get all lines in a list to