I have a file that has over 80k rows of that data that im parsing through and inserting into a table. the file is pipe delimited and I only want the first 3 fields for each row. when I tested out the spring boot program i made It worked with 10 lines of data fine, but when I tried to do it with a real file I got a ArrayIndexOutofBoundExcepetion: 1
at my String sql
variable. I believe that there is to much data im trying to store in the list.
I need help to change my code to read one line at a time and then insert into the database until all lines in the file have been covered. I think spring batch would help me do this but I'm not familiar with it and don't how to edit my code to do the line by line inserting with my current knowledge and experience.