Skip to content

@ComponentScan does not allow for registering beans with lazy initialization [SPR-10459] #15092

@spring-projects-issues

Description

@spring-projects-issues

Michał B opened SPR-10459 and commented

When configuration is specified like this, ComponentScan ignores annotation @Lazy and every bean found in "org.dzik" is created eagerly.

@Configuration
@Lazy
@ComponentScan("org.dzik")
public class BasicConfiguration {

}


Affects: 3.2.2

Attachments:

Issue Links:

4 votes, 8 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions