I want to convert csv file contains student data to List and insert into database. I have gone through many examples from various sources, none of them provides answer for batch processing csv files uploaded from Web UI using spring batch. All examples process csv files located in resource folder (classpath). Please help me to process csv files uploaded using Post Method as below.
@PostMapping("/save")
public ResponseEntity saveStudentDetails(@RequestParam("file") MultipartFile studentCSV) {
//code to initate batch processing for studentCSV file
}
Thanks in Advance.