November 2017
Intermediate to advanced
542 pages
14h 24m
English
First, we will begin to convert the current JBCP calendar project. Let's begin by reconfiguring the database to use the Flapdoodle embedded MongoDB database. Previously, when we updated the dependencies for this project, we added a Flapdoodle dependency that gave the project an embedded MongoDB database which we could automatically use instead of installing a full version of MongoDB installation. To stay consistent with the JBCP application, we need to change the name of our database. With Spring Data, we can change the MongoDB configuration using the YAML configuration, as follows:
//src/main/resources/application.yml spring # MongoDB data: mongodb: host: localhost database: dataSource ...
Read now
Unlock full access