Let's now implement a blocking batch transaction that reads data from a database:
- Create a separate Spring Boot 2.0 application, ch11-batch-db, and add the same starter POM dependencies used in the previous recipe, emphasizing the spring-boot-starter-batch and spring-oxm.
- Create a bootstrap class inside its core package, org.packt.process.core, that enables batch processing:
@SpringBootApplication @EnableBatchProcessing public class BatchProcessBootApplication { // refer to sources }
- Open the MySQL Workbench and create the following reg_employee database schema with the source table, employee, and destination table as permanent:
- Now, create application.properties in src\main\resources with an emphasis on reg_employee ...