-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: taskA general taskA general task
Milestone
Description
Maarten Winkels opened SPR-11495 and commented
The spring documentation states:
The Spring container validates the configuration of each bean as the container is created, including the validation of whether bean reference properties refer to valid beans. However, the bean properties themselves are not set until the bean is actually created. Beans that are singleton-scoped and set to be pre-instantiated (the default) are created when the container is created.
But a simple tests shows that a missing bean is not detected in a lazy context until it is created.
Affects: 3.2.6, 3.2.8, 4.0.2
Issue Links:
- @ComponentScan does not allow for registering beans with lazy initialization [SPR-10459] #15092
@ComponentScandoes not allow for registering beans with lazy initialization
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: taskA general taskA general task