会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
swave
2021年6月16日
接口动态代理IOC注入到spring容器中
摘要: public interface StudentService { public void add(String studentName); } 定义一个spring的FactoryBean,FactoryBean在通过spring实例化生成的不是自己本身,而是通过调用的getObject方法返回的
阅读全文
posted @ 2021-06-16 17:13 swave
阅读(557)
评论(0)
推荐(0)
Spring自定义实现ImportBeanDefinitionRegistrar引入外部类
摘要: import java.io.IOException; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.context.annotation.Cla
阅读全文
posted @ 2021-06-16 15:16 swave
阅读(294)
评论(0)
推荐(0)
Spring的Import,ComponentScan,ImportResource原理
摘要: org.springframework.context.annotation.ConfigurationClassPostProcessor(Bean定义的后置处理器)中,轮询BeanDefinitionRegistry中注册的所有已注册的类,找出包含Import,ComponentScan,Imp
阅读全文
posted @ 2021-06-16 14:34 swave
阅读(248)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告