Skip to content

Warn about the dangers of early bean initialization when using @ConditionalOnExpression #28771

@wilkinsona

Description

@wilkinsona

Referencing a bean in @ConditionalOnExpression will cause the bean to be initialized very early in context refresh processing. This can cause problems such as this one. We should add a warning about this to the annotation's javadoc and, perhaps, somewhere in the references docs as well.

Metadata

Metadata

Labels

status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions