从一次启动失败深入剖析:Spring 循环依赖的真相
一、背 景 预发环境一个后台服务admin突然启动失败,异常如下: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name'timeoutNotifyController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name'spuCheckDomainServiceImpl': Bean with name'spuCheckDomainServiceImpl'has been injected into other beans [...] in its raw version as part of a circular reference, but has eventuall...
