Skip to content

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

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
wilkinsona opened this issue Mar 11, 2019 · 0 comments
Closed

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

wilkinsona opened this issue Mar 11, 2019 · 0 comments
Assignees
Labels
type: task A general task
Milestone

Comments

@wilkinsona
Copy link
Member

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.

@wilkinsona wilkinsona added the type: task A general task label Mar 11, 2019
@wilkinsona wilkinsona added this to the 1.5.x milestone Mar 11, 2019
@wilkinsona wilkinsona self-assigned this Mar 11, 2019
@snicoll snicoll modified the milestones: 1.5.x, 1.5.20 Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

2 participants