Circular bean dependency since 4.5.8
See original GitHub issueIt works with 4.5.7 We have turned on Circular Dependency Check on the Spring Application Context. Its disabled by default, because Spring is trying to handle those circles in some cases.
Error message on startup:
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
grpcServerRunner (field private org.lognet.springboot.grpc.GRpcServicesRegistry org.lognet.springboot.grpc.GRpcServerRunner.registry)
┌─────┐
| grpcServicesRegistry defined in class path resource [org/lognet/springboot/grpc/autoconfigure/GRpcAutoConfiguration.class]
↑ ↓
| exceptionHandlerInterceptor defined in class path resource [org/lognet/springboot/grpc/autoconfigure/GRpcAutoConfiguration.class]
↑ ↓
| failureHandlingSupport defined in class path resource [org/lognet/springboot/grpc/autoconfigure/GRpcAutoConfiguration.class]
↑ ↓
| exceptionHandlerMethodResolver defined in class path resource [org/lognet/springboot/grpc/autoconfigure/GRpcAutoConfiguration.class]
└─────┘
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Circular Dependencies in Spring - Baeldung
But with a circular dependency, Spring cannot decide which of the beans should be created first since they depend on one another.
Read more >Handle Circular Dependencies in Spring - Java Guides
In this short article, we will discuss how to handle circular dependencies in spring based applications. If you use predominantly constructor injection, ...
Read more >Spring Framework Reference Documentation
If no circular dependencies exist, when one or more collaborating beans are being injected into a dependent bean, each collaborating bean is totally...
Read more >Error creating bean with name 'commandGateway' defined in ...
Circular references between beans are now prohibited by default. If your application fails to start due to a BeanCurrentlyInCreationException ...
Read more >Break circular references which disabled by default since ...
Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks @gbrehmer , reproduced, will be fixed
we do not use both, only
@GRpcService