BeanCurrentlyInCreationException异常

An error is reported when the project starts

 

org.springframework.beans.factory.BeanCurrentlyInCreationException

 

This is because when the Spring container creates a bean, an exception is reported when a circular reference occurs. A closed-loop situation that occurs.

 

1. Delete the closed-loop reference

 

2. Injection is to add @Lazy attribute

Published 115 original articles · Like 58 · Visits 160,000+

Guess you like

Origin blog.csdn.net/luChenH/article/details/103459291