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