Is there an unresolvable circular reference循环注入问题的解决 Java Spring 博主自留地

Is there an unresolvable circular reference循环注入问题的解决

今天在在项目中新增了一个服务,然后启动该服务,spring容器初始化报错:循环依赖,错误信息如下: Requested bean is currently in creation: Is there an unresolvable circular reference? 折腾了三个小时,特此记录一下! 错误的原因大概是: 新增该服务之前,服务A已经注入了服务C中的bean,...
阅读全文
Loading...