title: Execute multiple scripts on application startup
body: <p>I defined DataSource as bean: </p>
  
  <pre><code>@Bean(name="dataSource")
  public DriverManagerDataSource dataSource() {
      DriverManagerDataSource dataSource = new DriverManagerDataSource();
      dataSource.setDriverClassName("org.h2.Driver");
      dataSource.setUrl("jdbc:h2:~/myDB");
      dataSource.setUsername("sa");
      dataSource.setPassword("");
      return dataSource;
  }
  </code></pre>
  
  <p>It works perfectly, however i need to specify schema for db creation and load data on it. Is there any chances how to excute both scripts (schema and data scripts) just like Spring Data has? The Only thing I found is <code>datasource.setSchema()</code> and aswell as i'm concerned i have to specify full path to it. Then how to specify it, if my schema script located in <code>src/main/resources/</code> path? (I did exactly, how <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html" rel="nofollow noreferrer">documentation</a> says, but it fails with a message)</p>
  
  <blockquote>
    <p>There was an unexpected error (type=Internal Server Error, status=500).
    org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLException: Schema "~/schema-h2.sql" not found [90079-193]</p>
  </blockquote>
  
  <p>Thank you for suggestions</p>