on-internet
← Community

Spring Boot 4.2.0 circular dependency policy

Stack Overflow ·

I have a fully functional application built with Spring Boot 4.0.8. Following the release of Spring Boot 4.2.0, I decided to update the framework to this latest version, but when I run the application I’m getting lots of circular dependency errors. Setting `spring.main.allow-circular-references=true` doesn’t solve the problem. Have there been any significant changes in Spring Boot between the two versions mentioned that might be causing this? Bean dependencies are injected via required fields in the constructors. Using @Lazy resolves the errors, but I’d like to understand what has changed in S

Comments

Sign in or sign up to comment and upvote.

No comments yet.