title: Set hibernate.ddl-auto in springboot programmatically
body: <p>I use springboot in a non web application and data jpa. I use the default configuration except for datasource:</p>
  
  <pre><code>private static final String dataSourceUrl = "jdbc:h2:./Database;DB_CLOSE_ON_EXIT=FALSE";
  @Bean
  public DataSource dataSource() {
      return DataSourceBuilder.create().url(dataSourceUrl).username("user").password("pwd").build();
  }
  </code></pre>
  
  <p>How can I set the spring.jpa.hibernate.ddl-auto property also programmatically?</p>