title: Spring Boot insert sample data into database upon startup
body: <p>What is the right way for creating test data upon server startup and inserting them into the database (I'm using a JPA/JDBC backed Postgres instance).</p>
  
  <p>Preferably in form of creating Entities and having them persisted through a Repository interface rather than writing plain SQL code. Something like RoR's <code>Rake db:seed</code> helper.</p>
  
  <p>If the framework exposes a hook for doing stuff when all the beans have been injected and the database is ready, that could also work.</p>