Spring的IOC
时间: 2024-04-26 20:26:06 浏览: 125
spring_ioc_infoq.pdf
Spring的IOC(Inversion of Control,控制反转)是一种设计模式,它通过将对象的创建和依赖关系的管理交给外部容器来完成。在Spring中,IOC的实现技术是DI(Dependency Injection,依赖注入)。IOC的目的是减少对代码的改动,实现不同模块之间、类之间的解耦合。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Spring之IOC概念](https://blog.csdn.net/Q_J_B/article/details/128067666)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [spring的ioc](https://blog.csdn.net/qq_51476492/article/details/121041643)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文