If you are to take this code as your own, in order to connect to your own database, you will want to create an application.properties
file under your src/main/resources
folder and add where test
is your db name:
spring.data.mongodb.database=test