Skip to content

An EnvironmentAware FailureAnalyzer may be configured with the wrong Environment #25691

@wilkinsona

Description

@wilkinsona

When FailureAnalyzers, a SpringBootExceptionReporter, is created, the environment prepared by SpringApplication hasn't been set on the application context. This results in any EnvironmentAware FailureAnalyzer having the context's default environment injected rather than the environment that will be in place when the context is refreshed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions