会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
陈扬天
博客园
首页
新随笔
联系
订阅
管理
2021年7月7日
SpringBoot中 使用@Autowired 将bean注入到List或Map等集合中
摘要: 举例说明如下: 步骤1:定义一个接口 public interface IPerson { void doWork(); } 步骤2:对该接口做第一个实现类 import org.springframework.stereotype.Component; @Component("student")
阅读全文
posted @ 2021-07-07 08:57 陈扬天
阅读(4570)
评论(0)
推荐(0)