Skip to content

Inconsistent constructor declaration on bean with name '_reactiveMethodSecurityConfiguration' #16325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eugeniudedin opened this issue Dec 22, 2024 · 3 comments · Fixed by #17197
Assignees
Labels
in: config An issue in spring-security-config status: duplicate A duplicate of another issue type: bug A general bug

Comments

@eugeniudedin
Copy link

Describe the bug

I get this warn in my spring boot reactive app:

f.a.AutowiredAnnotationBeanPostProcessor : Inconsistent constructor declaration on bean with name '_reactiveMethodSecurityConfiguration': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: org.springframework.security.config.annotation.method.configuration.ReactiveAuthorizationManagerMethodSecurityConfiguration(org.springframework.security.access.expression.method.MethodSecurityExpressionHandler,org.springframework.beans.factory.ObjectProvider,org.springframework.beans.factory.ObjectProvider)

A bean (_reactiveMethodSecurityConfiguration in this case) has a constructor marked with @Autowired, but there is no default (no-arg) constructor available.

@TheRealGI
Copy link

Is there any action needed when this Log message pops up?

@sberequek
Copy link

Hi,

I also have this message:

[org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] [determineCandidateConstructors] Inconsistent constructor declaration on bean with name '_reactiveMethodSecurityConfiguration': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: org.springframework.security.config.annotation.method.configuration.ReactiveAuthorizationManagerMethodSecurityConfiguration(org.springframework.security.access.expression.method.MethodSecurityExpressionHandler,org.springframework.beans.factory.ObjectProvider,org.springframework.beans.factory.ObjectProvider)

are there any updates regarding its resolution?

damable-nuvolex added a commit to damable-nuvolex/spring-security that referenced this issue Jun 2, 2025
jzheaux pushed a commit to damable-nuvolex/spring-security that referenced this issue Jun 3, 2025
jzheaux pushed a commit to damable-nuvolex/spring-security that referenced this issue Jun 4, 2025
jzheaux pushed a commit that referenced this issue Jun 5, 2025
@jzheaux jzheaux closed this as completed in 3b12e75 Jun 5, 2025
@jzheaux jzheaux added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 5, 2025
@jzheaux jzheaux self-assigned this Jun 5, 2025
@jzheaux jzheaux added the in: config An issue in spring-security-config label Jun 5, 2025
@jzheaux
Copy link
Contributor

jzheaux commented Jun 5, 2025

Closed in favor of #17197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment