O'Reilly logo

Learning Spring Boot by Greg L. Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reconfiguring our app to use Spring Data MongoDB

Up until this point, we have used two relational databases to craft a teammate management app. To wrap up this chapter, we'll investigate how easy it is to retool our app to use MongoDB.

Note

To install MongoDB on your development machine, downloads are available at http://www.mongodb.org/downloads. Assuming that you have installed MongoDB and started it, proceed with the rest of this section. As a side note, anecdotal evidence suggests that it is important to install the 64-bit version of MongoDB to reduce the risk of data drops in case your data set grows big.

To start things off, we need to revise build.gradle so that it contains the following list of dependencies:

dependencies { compile("org.springframework.boot:spring-boot-starter-data-mongodb") ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required