- 博客(2)
- 收藏
- 关注
原创 Spring-依赖注入的三种主要方式
前置: public interface BeanService { void injection(); }
2022-01-21 09:16:58 120 1
原创 Spring-Bean的实例化
前置: BeanService: public interface BeanService {} BeanServiceImpl: public class BeanServiceImpl implements BeanService { public BeanServiceImpl(){ System.out.println("调用无参构造实例化"); } } Spring使用xml实例化Bean的三种方式: Ⅰ.创建bean标签。(默认调用无参构造函数进行实例化,
2022-01-20 09:12:51 54
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人