-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Error dependency cycle between beans when upgrade spring boot version from 3.4.3 to 3.4.4 #44988
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Thanks for the report, unfortunately it doesn't contain enough information to diagnose the problem. I suspect it may be related to #44706 but that's only a slightly educated guess based on the presence of If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue. |
I am using Spring Boot version 3.4.4 and have set
Can you identify the root cause of the dependency cycle error? |
Thanks. That's another indicator that the changes made for #44706 are involved here, but I don't yet fully understand why that's the case for a couple of reasons:
A sample that reproduces the problem would be very helpful in getting to the bottom of the current behavior and figuring out the best way to fix it. |
After some discussion with @jhoeller I now understand why Boot 3.4.3 and 3.4.4 are behaving differently. It's due to 3.4.4 filtering out non-singletons which triggered some unwanted early initialization of factory beans. This has been addressed in Spring Framework 6.2.6-SNAPSHOT through spring-projects/spring-framework#34710. @kridtakom, the Framework change should hopefully fix your problem. In the absence of an example that we can try ourselves, can you please test 6.2.6-SNAPSHOT against your app? It's available from https://repo.spring.io/snapshot. |
Thank you for your suggestion. I want to know the plan for releasing Spring 6.2.6 and Spring Boot 3.4.5 ? |
See https://spring.io/projects#release-calendar, https://github.com/spring-projects/spring-boot/milestone/378 and https://github.com/spring-projects/spring-framework/milestone/397 If you want to make sure the problem is fixed, please try the SNAPSHOTS. |
I am currently upgrading the Spring Boot and Spring Cloud versions for my project as follows:
build.gradle file
error log
I downgraded Spring Boot to version 3.4.3 and Spring Cloud to version 2024.0.0, and everything is functioning well.
The text was updated successfully, but these errors were encountered: