Skip to content

Large number of StandardEnvironment objects are initialised during startup. Visible in the logs at DEBUG level. [SPR-10568] #15197

@spring-projects-issues

Description

@spring-projects-issues

David Boden opened SPR-10568 and commented

When creating an application context, these log lines are output at DEBUG level many tens of times. It seems that there are an excess of StandardEnvironment objects being created.

DEBUG org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources

Affects: 3.2.2

1 votes, 3 watchers

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