Skip to content

Ensure that @Bean is only used on @Configuration classes #16190

@wilkinsona

Description

@wilkinsona

We have a few places across the codebase where we are accidentally using lite configuration mode with @Bean methods on a class that is not annotated with @Configuration. To avoid unexpected behaviour and to pave the way for #9068, we should make sure that we're only using @Bean on @Configuration classes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions