Spring attribute injection and setter injection, will an error be reported if there is a circular dependency?

for example: two objects

A->B 
B->A

will an error occur when creating or using an An object?

Dec.08,2021

No. If there is a circular dependency when loading bean, the injection should be delayed.

Menu