Tags → #spring
-
Sensitive Component Dependency Detection in Spring
In the Spring Framework, **Bean lifecycle management** is one of its core features. When the Spring container starts up, it performs the following steps:
-
使用Mockito修改Bean的依赖
在使用单元测试时使用Mockito修改Bean的依赖以解决Spring Bean传递嵌套依赖等情况,实现上需要使用Java的反射机制