Skip to content

Avoid hard logging of WebApplicationInitializer classes [SPR-14213] #18787

@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-14213 and commented

SpringServletContainerInitializer currently finds, initializes and logs all WebApplicationInitializer implementations in onStartup. With Spring Boot this can be a little confusing because initializers might be conditional. We can't use the usual @Condition annotation since the ApplicationContext hasn't been created yet, but perhaps we could add a ConditionalWebApplicationInitializer extension to WebApplicationInitializer with an additional isActive() method.

See spring-projects/spring-boot#5778 for the original Boot bug.


Affects: 4.2.5, 4.3 RC1

Referenced from: commits 6a3d494, f73df2e

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions