Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 08f8259

Browse files
committed
add ioc thought readme
1 parent ef3be2e commit 08f8259

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### IoC思想
2+
3+
4+
5+
<img src="https://tva1.sinaimg.cn/large/008i3skNly1guohvq3supj61cq0u0gpc02.jpg" alt="image-20210921195432177" width="700" align="left" />
6+
7+
8+
9+
- 松耦合
10+
- 降低强耦合关系,对象与对象之间的依赖不用new,而是通过Spring容器@Autowired注入完成
11+
- 灵活性
12+
- 不需要初始化使用类的构造方法,而是通过Spring容器完成初始化工作
13+
- 可维护
14+
- 通过Spring xml或注解 的方式,可以清晰的了解类与类之间的依赖关系,提升可读性
15+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /