@@ -97,7 +97,7 @@ public enum SearchStrategy {
97
97
98
98
- 类图
99
99
100
- ![ image-20200824085726621] ( ../../images/SpringBoot//SpringBoot/ image-20200824085726621.png )
100
+ ![ image-20200824085726621] ( ../../images/SpringBoot/image-20200824085726621.png )
101
101
102
102
在看这部分源码之前需要先了解 ` Conditional ` 和` Condition ` 的源码
103
103
@@ -421,7 +421,7 @@ for (String type : spec.getTypes()) {
421
421
422
422
- 在忽略 bean 找到之后做一个类型移除的操作.
423
423
424
- ![ image-20200825140750035] ( ../../images/SpringBoot// image-20200825140750035.png )
424
+ ![ image-20200825140750035] ( ../../images/SpringBoot/image-20200825140750035.png )
425
425
426
426
### 返回值
427
427
@@ -469,7 +469,7 @@ public static ConditionOutcome noMatch(ConditionMessage message) {
469
469
return ConditionOutcome . match(matchMessage);
470
470
```
471
471
472
- ![ image-20200825141506531] ( ../../images/SpringBoot// image-20200825141506531.png )
472
+ ![ image-20200825141506531] ( ../../images/SpringBoot/image-20200825141506531.png )
473
473
474
474
- 到此结果封装完毕.回到方法` org.springframework.boot.autoconfigure.condition.SpringBootCondition#matches(org.springframework.context.annotation.ConditionContext, org.springframework.core.type.AnnotatedTypeMetadata) ` 继续进行
475
475
- 再往后就继续执行 spring 的 bean 初始化咯
@@ -492,7 +492,7 @@ public static ConditionOutcome noMatch(ConditionMessage message) {
492
492
493
493
- 根据类的注解信息我们可以找到有` ResourceBundleCondition `
494
494
495
- ![ image-20200825092343271] ( ../../images/SpringBoot// image-20200825092343271.png )
495
+ ![ image-20200825092343271] ( ../../images/SpringBoot/image-20200825092343271.png )
496
496
497
497
- 获取类名或者方法名的结果是` MessageSourceAutoConfiguration ` 全路径
498
498
@@ -592,8 +592,8 @@ org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition
592
592
593
593
- 此时我们可以和前文的源码分析连接起来有一个完整的认识了
594
594
595
- ![ image-20200825142332485] ( ../../images/SpringBoot// image-20200825142332485.png )
595
+ ![ image-20200825142332485] ( ../../images/SpringBoot/image-20200825142332485.png )
596
596
597
597
- 最后来看整体类图
598
598
599
- ![ image-20200825142418115] ( ../../images/SpringBoot// image-20200825142418115.png )
599
+ ![ image-20200825142418115] ( ../../images/SpringBoot/image-20200825142418115.png )
0 commit comments