Skip to content

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

Closed
@eugeniudedin

Description

@eugeniudedin

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.

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configstatus: duplicateA duplicate of another issuetype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions