SpringBoot中普通类如何获取容器中的对象

2024-10-14 03:13:44

1、创建一个springboot测试项目

SpringBoot中普通类如何获取容器中的对象

3、这类是通过AutowireCapableBeanFactory beanFactory 获取容器中成员

SpringBoot中普通类如何获取容器中的对象

4、测试引用

SpringBoot中普通类如何获取容器中的对象
猜你喜欢