会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
晚灯
博客园
首页
新随笔
联系
订阅
管理
2022年9月14日
获取spring容器中接口的实现类或者子类<T> Map<String, T> getBeansOfType(@Nullable Class<T> type)的对象
摘要: 获取ApplicationContext @AutowiredApplicationContext applicationContext;使用applicationContext中的getBeansOfType方法可以拿到一个Map这个map的key就是bean的名称,value就是对象,这里的va
阅读全文
posted @ 2022-09-14 13:33 晚灯
阅读(872)
评论(0)
推荐(0)
编辑
公告