How to do it...

Let us now explore the asynchronous side of Spring Data JPA module:

  1. Convert ch12-asyncjpa to a Spring Boot 2.0 application by adding the Spring Boot 2.0.0.M2starter POM dependencies, such as webflux, actuator for project status monitoring and management, Spring JDBC, and MYSQL connector.
  2. Since there is no dedicated Spring Data JPA module for asynchronous repository transactions, add the same starter POM dependencies for Spring Data JPA to pom.xml:
<dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-data-jpa</artifactId> 
</dependency> 
  1. Inside the core package, org.packt.microservice.core, add the following Bootstrap class:
@SpringBootApplication public class HRDeptBootApplication extends ...

Get Spring 5.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.