SpringApplication class

The SpringApplication class can be used to Bootstrap and launch a Spring application from a Java main method.

The following are the steps that are typically performed when a Spring Boot application is bootstrapped:

  1. Create an instance of Spring's ApplicationContext.
  2. Enable the functionality to accept command-line arguments and expose them as Spring properties.
  3. Load all the Spring beans as per the configuration.

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.