spring data mongodb configuration
How to get embedded data in a MongoDB document? MongoDB Database Big Data Analytics. Following is the syntax to get the embedded data in a MongoDB document. db.yourCollectionName.find ( {}, {yourOuterKeyName.yourInnerKeyName:1}).pretty (); Let us first create a collection with documents. It's free to sign up and bid on jobs. public class Config(){ So you dont have to add your certificate via command line. I have tried passing the setting the connection spring in the application.properties -> spring.data.mongodb.uri= I am getting the below errors: (2.3.1) with similar Spring configuration and Java Driver (4.0.4). @Bean We provide a template as a high-level abstraction for storing and querying documents. spring: data: Spring Boot requires very few configurations. Lets start with the simple XML configuration for the Mongo template: