title: One repository to two databases, MongoDB and Spring Boot
body: <p>I have a repository which I want to save inside two different MongoDB databases, programmatically.</p>
  
  <p>If the user enters an URL with the parameter DB1, the repository will save inside the database DB1, if it is DB2, to the database DB2, etc.</p>
  
  <p>Is there any way to do this?</p>