April 2018
Intermediate to advanced
432 pages
10h 38m
English
In order to enable Mongo support for our Spring Boot application, include the spring-boot-starter-data-mongo starter to the dependencies. This project provides some interesting features to simplify integration with MongoDB. Among these features, it is worth mentioning particular rich object mapping, MongoTemplate, and of course support for the repository writing style, well-known from other Spring Data projects. Here's the required dependency declaration in pom.xml:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId></dependency>
The instance of MongoDB may be easily started using its Docker image. Run the following command to launch the Docker container ...