Thank you Jay.

I assume this is a clustered MongoDB instance that you are working.

you are connecting to a router ? not to a config server ? (update the application.properties use router port and host)

can you share your server conf file that you are using for your mongoDB server.

Just to test out that is working without multi-tenant config. delete files SharedMongoConfig, MultiTenantMongoAppConfig. and put

@EnableMongoRepositories on MultiTenantApplication class.

@EnableMongoRepositories(basePackages = {"com"})

public class MultiTenantApplication {

...

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store