Document database implementation with MongoDB
We are now going to work on refactoring our RDBMS implementation—with JPA as our ORM provider—to a document database implementation, using MongoDB as our underlying database provider. MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. MongoDB is developed by MongoDB Inc. and is located at https://github.com/mongodb/mongo.
Updating our dependencies
We have already included all of the dependencies you need for this chapter, so you will not need to make any updates to your build.gradle
file. However, if you are just adding Spring Data JPA support to your own application, you will need to add spring-boot-starter-data-jpa
as a dependency to the build.gradle
file, as follows:
//build.gradle dependencies { // MondgoDB implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'...