Spring Boot 2.6.5源码阅读
文章平均质量分 80
Spring Boot 2.6.5源码阅读
⚠️
这个作者很懒,什么都没留下…
展开
-
运行SpringApplication四
通过前文已读取到7个后置处理器,逐一查看首先是org.springframework.boot.env.RandomValuePropertySourceEnvironmentPostProcessor—————— postProcessEnvironment startorg.springframework.boot.env.RandomValuePropertySourceEnvironmentPostProcessor@Overridepublic void postProcessEnvi原创 2022-05-17 15:03:36 · 201 阅读 · 0 评论 -
运行SpringApplication三
前面我们看到创建了6个监听器,下面逐一查看首先是org.springframework.boot.env.EnvironmentPostProcessorApplicationListener———— onApplicationEvent startorg.springframework.boot.env.EnvironmentPostProcessorApplicationListener@Overridepublic void onApplicationEvent(ApplicationEv原创 2022-05-17 15:00:18 · 822 阅读 · 0 评论 -
Spring Boot前言
笔记根据最小化配置的Spring Boot运行顺序进行梳理<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency></dependencies>创建应用@SpringBootApplicat原创 2022-05-06 15:18:06 · 101 阅读 · 0 评论 -
创建SpringApplication实例
构造方法org.springframework.boot.StringApplicationpublic SpringApplication(Class<?>... primarySources) { this(null, primarySources);}org.springframework.boot.StringApplicationpublic SpringApplication(ResourceLoader resourceLoader, Class<?>原创 2022-05-06 15:18:59 · 458 阅读 · 0 评论 -
运行SpringApplication一
调用SpringApplication实例的run方法org.springframework.boot.StringApplicationpublic ConfigurableApplicationContext run(String... args) { long startTime = System.nanoTime(); DefaultBootstrapContext bootstrapContext = createBootstrapContext(); ConfigurableAppl原创 2022-05-10 17:00:50 · 399 阅读 · 0 评论 -
运行SpringApplication二
回顾之前的代码,主要做了两件事将配置的运行监听器实例化创建启动事件实例,并推送给适配的监听器处理(logback读取配置文件、完成预初始化)继续创建应用参数集合实例ApplicationArguments applicationArguments = new DefaultApplicationArguments(args);— DefaultApplicationArguments startorg.springframework.boot.DefaultApplicationArgu原创 2022-05-12 14:04:08 · 285 阅读 · 0 评论