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 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.