Spring Framework

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

Spring Batch Tutorial: Reading Information From a CSV File

The previous parts of my Spring Batch tutorial provided an introduction to Spring Batch and described how you can get the required dependencies by using either Maven or Gradle. After you have downloaded the required dependencies, you can start writing Spring Batch jobs. The first thing that you have to do is to provide the […] Read more