How to do it...

Let's implement a non-blocking batch process by following these steps:

  1. Create a Spring Boot 2.0 project, ch11-batch-async, that has the same starter POM dependencies with the same MySQL connection pool support and Spring OXM module.
  2. Create a bootstrap class that enables batch processing and task scheduling:
public class AsyncBatchBootApplication { 
 public static void main(String[] args) throws Exception {, 
  1. In its src\main/\resources directory, create that contain the same configuration as the one in ch11-batch-sync. Just modify some server-related configurations.
  2. Copy

Get Spring 5.0 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.