Skip to content

Do not consider all @Component instances as @Configuration candidates [SPR-10609] #15238

Closed
@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-10609 and commented

Any @Component is currently considered as a lite configuration class option [1]. It would probably make more sense to restrict lite configuration classes to only those containing @Bean methods.

[1] https://github.com/SpringSource/spring-framework/blob/v3.2.3.RELEASE/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassUtils.java#L103


Affects: 3.2.3

Sub-tasks:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions