I didn't want to complicate things too much, so I simply added injection points into the list that is printed out in the exception.
So the list in the error message will look something like this:
beanA, injectionPointInBeanA, beanB, injectionPointInBeanB, beanA
The circular dependency can also be caused by a decorator. The list will look something like this:
beanA, decoratorOfBeanA, injectionPointInDecorator, beanB, injectionPointInBeanB, beanA
I didn't want to complicate things too much, so I simply added injection points into the list that is printed out in the exception.
So the list in the error message will look something like this:
The circular dependency can also be caused by a decorator. The list will look something like this: