To start from scratch, move on to Starting with Spring Initializr.
To skip the basics, do the following:
- Download and unzip the source repository for this guide, or clone it using Git:
git clone https://github.com/spring-guides/gs-batch-processing.git
- cd into
gs-batch-processing/initial
- Jump ahead to Create a Business Class.
When you finish, you can check your results against the code in gs-batch-processing/complete
.
Business Data
Typically, your customer or a business analyst supplies a
spreadsheet. For this simple example, you can find some made-up data in src/main/resources/sample-data.csv
:
Jill,Doe
Joe,Doe
Justin,Doe
Jane,Doe
John,Doe
This spreadsheet contains a first name and a last name on each row, separated by a comma. This is a fairly common pattern that Spring can handle without customization.