Spring
文章平均质量分 67
肆伍陆柒
这个作者很懒,什么都没留下…
展开
-
小马哥 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 阅读 · 0 评论 -
小马哥 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 阅读 · 0 评论 -
小马哥 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 阅读 · 0 评论