In my backend API I want to select or create a database, once my database is selected or created I would like to use ORM to update or create the schemas in the database, but how can I set the jdbc.url to connect into my database at runtime?
I have tried some approaches but all of them connect to the database at the beginning(that's why the application.properties store the jdbc.url and some other properties).
That gives me another idea of making 2 different APIs, one master API(with a master database) which will create or select the necessary database(clients database), and the second API will establish the connection with that database(client database) from the beginning as the common Java packages require, but them I got another question. How can I start my second API with the specified jdbc.url database?
I'm using Azure portal services.