Check out example codes for "connecting to mongo database in spring boot". It will help you in understanding the concepts better.

Code Example 1

spring.data.mongodb.uri: mongodb://<hostInformation>/<DatabaseName>

Learn ReactJs, React Native from akashmittal.com