title: Need to change the database Name of datasource url dynamically(Multi tenant database )
body: <p>I'm using Spring boot and Spring-data-Jpa. I am setting my data source URL, username, and password in the application.properties file. It works perfectly for one database connection,Now I am facing issue with my Database project structure that is based on the particular user his own database need to connect and get the result to a particular user database and I can achieve this using abstract data source,   DataSourceBuilder at configuration level(it is one time can I able to change data source dynamically) but I need change in data source each time controller hits.</p>
  
  <p>here is some code for application.properties and I have injected my datasource using autowire.</p>
  
  <p>abstract datasource I have used and it is limited to the static client, But in my structure Clients Database keep on increasing so it's not  useful for me</p>
  
  <p><code>spring.datasource.url=jdbc:sqlserver://test-datbase:1433;dbName1
  spring.datasource.username=userName
  spring.datasource.password=Password
  spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver</code></p>
  
  <p>Need code or method I can change my database connection on every hit to the controller</p>
  
  <p>Note: I just need to change my database, My dialect and everything else will be the same.</p>