Skip to content

Document that bean methods should be static when annotated with @ConfigurationPropertiesBinding #45621

Closed
@wilkinsona

Description

@wilkinsona

A bean annotated with @ConfigurationPropertiesBinding should be declared static as they're created early during bean post-processing for configuration property binding. When not declared as static, the bean method's @Configuration class is created early and becomes ineligible for full post-processing.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions