Let's implement a simple event using Spring Cloud Task:
- Create a Spring Boot 2.0 project, ch11-batch-task, that contains the core starter POM such as webflux, actuator, and the Tomcat server for Spring Boot 2.0, with the addition of the needed Spring Cloud dependent management configuration, which is Spring Cloud Finchley.
- Add the following Spring Cloud Task dependency into the pom.xml file:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-task-core</artifactId>
</dependency>
- Create a core package org.packt.process.core and create a bootstrap class that enables Spring Cloud Task through the @EnableTask annotation:
@SpringBootApplication @EnableTask public class TaskBootApplication extends ...