摘要: 一、开胃菜:入门级面试题:如果一个接口有多个实现类,想取到其中某一个Bean怎么进行一个依赖注入 1、代码 package com.mangoubiubiu.show; import lombok.extern.slf4j.Slf4j; import org.slf4j.LoggerFactory; 阅读全文
posted @ 2022-03-30 22:46 KwFruit 阅读(74) 评论(0) 推荐(0)
摘要: 一、DefaultListableBeanFactory DefaultListableBeanFactory,是 BeanFactory 最重要的实现,像控制反转和依赖注入功能,都是它来实现 1、需求一:往DefaultListableBeanFactory里面 注册一个组件 package co 阅读全文
posted @ 2022-03-30 22:42 KwFruit 阅读(65) 评论(0) 推荐(0)