首页
沸点
课程
数据标注
HOT
AI Coding
更多
直播
活动
APP
插件
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
绽放苍穹
掘友等级
java
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
0
文章 0
沸点 0
赞
0
返回
|
搜索文章
最新
热门
【spring】依赖注入之@Autowired依赖注入
本文源码基于spring-framework-5.3.10。源码位置:org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(P...
【spring】依赖注入之@Autowired寻找注入点
本文源码基于spring-framework-5.3.10。在属性注入的时候,spring需要找到那些属性需要注入!源码位于:org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProce...
【spring】依赖注入之ByType方式注入
本文源码基于spring-framework-5.3.10。在创建Bean的时候会进行依赖注入源码位置在:org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.获取到set方法中的...
【spring】依赖注入之ByName方式注入
本文源码基于spring-framework-5.3.10。在创建Bean的时候会进行依赖注入源码位置在:org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.// 当前Bean中...
【spring】创建Bean的方法:createBean源码分析
本文源码基于spring-framework-5.3.10。实例化前:InstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation()实例化:推断构造方法后置处理合并后的BeanDefinition:Merg...
【spring】获取Bean的方法:getBean源码分析
本文源码基于spring-framework-5.3.10。spring启动的时候会创建非懒加载的单例Bean。通过BeanFactory或者实现BeanFactory的子类(ApplicationContext)进行调用。通知spring在创建当前Bean的时候,先去创建@De...
【spring】Bean的生命周期之生成非懒加载的单例Bean
本文源码基于spring-framework-5.3.10。FactoryBean会生成一个BeanDefinition俩个Bean对象。AnnotationConfigApplicationContext context = new AnnotationConfigApplic...
【spring】Bean的生命周期之生成BeanDefinition
本文源码基于spring-framework-5.3.10Spring启动的时候会进行扫描。扫描入口:org.springframework.context.annotation.ClassPathBeanDefinitionScanner中public int scan(Str...
【spring】通俗易懂的了解BeanDefinition
简单说就是对Bean信息的定义。描述一个bean的全部信息,比如他的class类型、Bean的作用域、是否懒加载…spring中每一个被扫描到的bean都会生成一个BeanDefinition。BeanDefinition的主要作用是为了在只解析一次类的情况下,最大程度的拿到这类...
【spring】ApplicationContext详解
getBean:Bean工厂主要方法,获取Bean。containsBean:是否包含某个Bean。isSingleton:是否是单例的Bean。isPrototype:是否是原型的Bean。isTypeMatch:判断Bean是否匹配指定的类型。getType:获取Bean的类...
下一页
个人成就
文章被点赞
1
文章被阅读
19,079
掘力值
219
关注了
2
关注者
2
收藏集
0
关注标签
16
加入于
2022-02-22