Multi-tenant mongodb database based with spring data
问题 I would like to make my web application that is using mongodb and spring-data multitenat. Basically I would like to replicate all my entities(collections) into different databases. Then (based on some rule as for example the user that is logged in the system) I want to store some entity instance (document) into the right database. For example I have a Service Called DBNameProviderService.getDbName() that dynamically returns me the name of the database. How can I use this service to