You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BeanCurrentlyInCreationException when used spring security with spring boot 2.3.0.RELEASE and spring.main.lazy-initialization: true and management.server.port #8596
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'authenticationPrincipalArgumentResolverConfigurer': Requested bean is currently in creation: Is there an unresolvable circular reference?
When I start a minimal spring boot application with spring-security added as dependency and
the following properties configured:
There is a circular reference problem between these two configurations: ServerHttpSecurityConfiguration and DelegatingWebFluxConfiguration
I also want to reference this issue: spring-projects/spring-boot#21580
opened to spring boot with the same error.
Could you please help with this error and break that cycle error in this configuration ServerHttpSecurityConfiguration???
To Reproduce
Start the sample application Running the class: DemoApplication