Spring Framework

Spring Batch Tutorial: Writing Information to a CSV File

The previous parts of this tutorial have taught you to read the input data of your batch job from different data sources. However, your batch job isn't very useful because you don’t know how you can save the output data of your batch job. This time you will learn to write the output data of […] Read more

Spring Batch Tutorial: Reading Information From an Excel File

It is pretty easy to create a Spring Batch job that reads its input data from a CSV or an XML file because these file formats are supported out of the box. However, if you want to read the input data of your batch job from a .XLS or .XLSX file that was created with […] Read more

Spring Batch Tutorial: Reading Information From a REST API

Spring Batch has a good support for reading data from different data sources such as files (CSV or XML) or databases. However, it doesn’t have a built-in support for reading input data from a REST API. If you want to use a REST API as a data source of your Spring Batch job, you have […] Read more

Spring Batch Tutorial: Creating a Custom ItemReader

Spring Batch has a good support for reading the input data of a batch job from different data sources such as files (CSV, XML) and databases. However, it's quite common that you have to read the input data from a data source that's not supported out of the box. This means that you have to […] Read more

Spring Batch Tutorial: Reading Information From a Relational Database

The previous parts of my Spring Batch tutorial described how you can read information from CSV and XML files. These are definitely useful skills, but if you want to write real-life batch jobs, you have to know how you can read the input data of a Spring Batch job from a relational database. After you […] Read more