- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 小马哥 Spring-IoC笔记(3)BeanFactory和ApplicationContext的异同
BeanFactory和ApplicationContext The BeanFactory interface provides an advanced configuration mechanism capable of managing any type of object. ApplicationContext is a sub-interface of BeanFactory. It adds: Easier integration with Spring’s AOP features Mess
2022-01-09 21:43:45 83
原创 小马哥 Spring-IoC 笔记(2) 依赖查找和依赖注入
依赖查找 根据 Bean 名称查找 实时查找 延迟查找 根据 Bean 类型查找 单个 Bean 对象 集合 Bean 对象 根据 Bean 名称 + 类型查找 根据 Java 注解查找 单个 Bean 对象 集合 Bean 对象 依赖注入 根据 Bean 名称注入 根据 Bean 类型注入 单个 Bean 对象 集合 Bean 对象 注入容器內建 Bean 对象 注入非 Bean 对象 注入类型 实时注入 延迟注入 依赖来源 自定义 Bean 容器內建 Bean 对象 容器內建依赖 代码 /*
2022-01-09 21:03:47 422
原创 小马哥 Spring-IoC 笔记(1) 什么是IoC(Inversion of control)
IoC(Inversion of control) In software engineering, inversion of control (IoC) is a programming principle. IoC inverts the flow of control as compared to traditional control flow. In IoC, custom-written portions of a computer program receive the flow of con
2022-01-09 16:03:53 226
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人