SpringBoot启动流程
2024-04-28 22:09:08 0 举报
springboot启动流程笔记
作者其他创作
大纲/内容
new SpringApplication(primarySources).run(args);
构造器初始化:1
1.1 this.resourceLoader
1.2 this.primarySources
1.3 this.webApplicationType = WebApplicationType.deduceFromClasspath()
1.4 this.bootstrapRegistryInitializers = new ArrayList<>(
getSpringFactoriesInstances(BootstrapRegistryInitializer.class));
getSpringFactoriesInstances(BootstrapRegistryInitializer.class));
1.5 setInitializers((Collection) getSpringFactoriesInstances(ApplicationContextInitializer.class));
1.6 setListeners((Collection) getSpringFactoriesInstances(ApplicationListener.class));
1.7 this.mainApplicationClass = deduceMainApplicationClass();
执行run方法:2
收藏
收藏
0 条评论
下一页