Setting up dependencies and configuration

Initially, before implementing the domain model, the dependency and configuration classes need to specified. The following Maven starter dependency  needs to be included:

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
</dependency>
...
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
</dependency>
</dependencies>

The preceding entries import all the dependencies of the MongoDB Reactive stack and an embedded MongoDB, which can be used to store documents.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.107.85