Creating the first Reactive repository

We have a couple of repositories in our CMS project. Now, we need to convert these repositories to reactive ones. The first thing we will do is remove the extension from CrudRepository, which is not necessary anymore. Now, we want the reactive version of that. 

We will update the ReactiveMongoRepository interface. The parameters of the interface are the same as the ones we inserted before. The interface should be like this:

package springfive.cms.domain.repository;import org.springframework.data.mongodb.repository.ReactiveMongoRepository;import springfive.cms.domain.models.Category;public interface CategoryRepository extends ReactiveMongoRepository<Category,String> {}

This is quite similar to the one ...

Get Spring 5.0 By Example 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.