How to do it...

Let us utilize Reactive Spring Data JPA by performing the following steps:

  1. Convert ch12-mongodb to a Spring Boot 2.0 application by adding the Spring Boot 2.0.0.M2 starter POM dependencies, such as webflux, actuator for project status monitoring and management, Spring JDBC, MySQL connector, and the Spring Data JPA starter POM that we just used.
There is no reactive counterpart for the Spring Data JPA's CrudRepository and JpaRepository.
  1. Before anything else, verify that you have installed the recent binary for the MongoDB server in your system. If not, go back to Chapter 1, Getting Started with Spring, and follow the procedure on how to install the MongoDB server.
  2. To turn on the MongoDB server, open a command-line terminal ...

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.