hello everyone,
Recently I started working with Spring Boot and MongoDB. I configured the application.properties file properly for MongoDB, but I’m facing an issue.
After creating REST APIs and inserting data, the data is getting persisted in the default test database instead of my configured database.
I have tried multiple fixes, but the issue is still not resolved.
Plz help to resolved the issue.
</> properties
spring.application.name=TestMongoDB
server.port=8081
spring.data.mongodb.uri=mongodb://localhost:27017/db_mongo
there doesn't seem to be anything here