Spring export schema DDL to the database in runtime
<p>I'm using Dynamic <strong>DataSource</strong> in my Spring Boot application. </p>

<p>The problem is I need to generate tables from my entities. There is a way with </p>

<p><code>spring.jpa.hibernate.ddl-auto=update</code> </p>

<p>but it doesn't work for me since I need to connect to Database in run-time.
What I need to know is can I call some method to do same things as Spring does on application startup with mentioned option.</p>