Skip to content

Provide a mechanism for adding ApplicationContextInitializers to DispatcherServlet's ApplicationContext [SPR-11314] #15938

Closed
@spring-projects-issues

Description

@spring-projects-issues

nebhale opened SPR-11314 and commented

Currently, there is no way to add an ApplicationContextInitializer to the DispatcherServlet's ApplicationContext at runtime (i.e. without explicit configuration on the application's part). This is possible to do on the root ApplicationContext using the contextInitializerClasses Servlet init-param.

Some mechanism (accessible from a ServletContainerInitializer) should be exposed in order to influence the DispatcherServlet's ApplicationContext and allow an ApplicationContextInitializer to be added.


Affects: 3.2.6, 4.0 GA

Reference URL: https://github.com/nebhale/spring-servlet3-autoreconfig-poc

Referenced from: commits 444b372, 5fb2665, 91881ff

Backported to: 3.2.7

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions