Skip to content

Doc: Lazy context is not validated on creation [SPR-11495] #16120

@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions