title: import initial data into spring boot app
body: <p>According to the documentation 
  <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html" rel="nofollow noreferrer">http://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html</a> to import data on startup you can define these 2 properties inside application.properties:</p>
  
  <pre><code>spring.datasource.data=data.sql
  spring.datasource.schema=schema.sql
  </code></pre>
  
  <p>This works when you have both of these files, but i don't have schema. I am generating db schema using hibernate</p>
  
  <pre><code>spring.jpa.hibernate.ddl-auto=create-drop
  </code></pre>
  
  <p>Previous workaround <a href="https://stackoverflow.com/questions/33307051/importing-data-with-spring-boot">Importing Data with spring boot</a> was to define file for schema.sql blank, but it doesn't work anymore. I will get exception that file can't be <code>blank or null</code>.</p>
  
  <p>In spring application i simply defined</p>
  
  <pre><code>&lt;jdbc:initialize-database data-source="simpleDataSource"&gt;
      &lt;jdbc:script location="classpath:dbscripts/data.sql"/&gt;
  &lt;/jdbc:initialize-database&gt;
  </code></pre>
  
  <p>and it worked.</p>
  
  <p>Is there a way to have same behaviour also in springBoot?</p>