skip to Main Content

Mongodb – How to resolve the 'Factory method 'mongoDatabaseFactory' threw exception with message: Database name must not be empty' error in Spring Boot?

Error creating bean with name 'mongoDatabaseFactory' defined in class path resource. Failed to instantiate [org.springframework.data.mongodb.core.MongoDatabaseFactorySupport]: Factory method 'mongoDatabaseFactory' threw exception with message: Database name must not be empty I'm not sure what I'm doing wrong here. error message application.properties I…

VIEW QUESTION

Mongodb – how do I fix 'cannot post error' in nodejs?

new to node.js I'm working on a nodejs-experss-mongodb project and I'm currently implementing a subscription function with the following specific requirements: Method: post Url:localhost:8080/api/v1/users/:userid/subscribe/:businessid AC: Current user's following array, add business id. Add the current user id to the merchant's…

VIEW QUESTION

Mongodb – Configure Mongo with TLS

I'm working on configuring my Mongo 4.2 with TLS using minikube. These are my arguments: --auth --tlsMode requireTLS --tlsCertificateKeyFile /etc/ssl/mongodb-test-ca.crt --tlsCAFile /etc/ssl/test-ca.pem --oplogSize 32 --quiet --replSet myreplicaset --logpath /dev/stdout I'm getting this error: cannot read certificate file: /etc/ssl/mongodb-test-ca.key error:0909006C:PEM routines:get_name:no…

VIEW QUESTION

Mongodb – Mongo db query optimization

I am using mongo db to store notifications, a cron job runs every midnight to pick old notification and delete them. The deletion policy has a logic to retain the oldest notification of each combination of "sourceObjectIdentifier" and "notificationType". The…

VIEW QUESTION
Back To Top
Search