title: How to initialize Spring bean at very beginning of Spring initialization?
body: <p>I would like to use in my Spring Boot application <a href="https://flywaydb.org/" rel="nofollow noreferrer">flywaydb</a> to update / initialize database from <code>SQL</code> alter files on initialization. Java code, that process Flywaydb, should be executed after Spring <code>datasource</code> is created (Flywaydb needs <code>javax.sql.DataSource</code>) BUT before application beans are initialized. I am aware of <code>@DependsOn</code> annotation bud I don't want to avoid to set this on all application beans.</p>
  
  <p>Is there some way how to initialize specific bean in specified order?</p>