title: Why does Spring Boot refresh the context right after preparing the context
body: <p>I am reading the source code of Spring Boot and I found that Spring Boot refreshes the context right after preparing the context in the run method.</p>
  
  <p>SpringApplication.run method:</p>
  
  <pre><code>...
  prepareContext(context, environment, listeners, applicationArguments,printedBanner);
  refreshContext(context);
  ...
  </code></pre>
  
  <p>Can anyone explain why refreshing context is needed? Thanks.</p>