Check out example codes for "spring boot mongo crud repository application properties". It will help you in understanding the concepts better.

Code Example 1

# Application configuration.
server.port=8102
 
# Local mongodb configuration.
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.database=ducat-assignment

Learn ReactJs, React Native from akashmittal.com