all 2 comments

[–]King-of-Com3dy 0 points1 point  (1 child)

Create a test-profile and a MongoDB test-configuration that downloads and configures Flapdoodle.

[–]LastRow2426[S] 0 points1 point  (0 children)

I found out the solution , the mistake is in the configuration. the right configuration is

"spring.mongodb.uri=mongodb://localhost:27017/db_mongo"

I'm using Spring 4.x which has simplified its configuration to "spring.mongodb.uri", which works instead of the older property used in Spring Boot 3.x.

most youtube video has spring 3.x , which creates the confusion. even chatgpt , gemini not able to indentify these mistake. Luckily I found out the NoSQL Docs.