Removing the PostgreSQL and Spring Data JPA dependencies

We will convert our project to use the brand new Spring Data Reactive MongoDB repositories. After that, we will not use the Spring Data JPA and PostgreSQL drivers anymore. Let's remove these dependencies from our pom.xml:

<dependency>  <groupId>org.springframework.boot</groupId>  <artifactId>spring-boot-starter-data-jpa</artifactId></dependency><dependency>  <groupId>org.postgresql</groupId>  <artifactId>postgresql</artifactId>  <version>42.1.4</version></dependency>

And then, we can add the following dependency:

<dependency>  <groupId>org.springframework.boot</groupId>  <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId></dependency>
The final version of pom.xml can be found ...

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.