The first recipe will be about building a simple batch process that transforms data from one rendition type to another. This is a typical solution to bulky, non-interactive, and routine background processes that can be a simple data transformation or a highly computational data mining algorithm that continuously harvests data using either synchronous thread pipes or parallel executors. This recipe highlights the synchronous batch process for data conversion.
Create a new Maven project that uses spring-boot-starter-batch
to create a background process that parses an XML file and transfers some filtered content to a text file.
Let's create a standalone application that transforms XML to a text file using the following steps:
- Using Eclipse STS, create a Maven project,
ch11-batch-sync
, that contains the Spring Boot 2.0.0.M2 starter POM dependencies, such as actuator and JDBC, with some support plugins such as the MySQL connector...