SpringBoot应用启动流程
Catalogue
bootstrap and launch a Spring application from a Java main method. By default class will perform the following steps to bootstrap your application:
- Create an appropriate {@link ApplicationContext} instance (depending on your classpath)
- Register a {@link CommandLinePropertySource} to expose command line arguments as Spring properties
- Refresh the application context, loading all singleton beans
- Trigger any {@link CommandLineRunner} beans
1 | /** |
ConfigurableApplicationContext