一、目录结构(没分包) 二、方法 方法:1:@Qualifier(“bread”)和 @Autowired组合: 方法2:通过默认id 方法3:@Resource(注意包是javax.annotation下说的)