Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractAnnotationConfigDispatcherServletInitializer does not allow consolidating all configuration into the "root" context [SPR-11357] #15982

spring-projects-issues opened this issue Jan 24, 2014 · 0 comments
in: web status: backported type: bug


Copy link

@spring-projects-issues spring-projects-issues commented Jan 24, 2014

Rossen Stoyanchev opened SPR-11357 and commented

For single servlet deployments, Spring configuration does not have to be split into "root" context configuration and "DispatcherServlet" configuration. When consolidating all configuration, it should be possible to do so in the "root" context (e.g. for application that use Spring Security).

In web.xml it's possible to leave the contextConfigLocation attribute of the DispatcherServlet empty and load all Spring configuration in the root context.

The AbstractAnnotationConfigDispatcherServletInitializer however prevents createServletApplicationContext from returning null.

Affects: 3.2.6, 4.0 GA

Issue Links:

  • #20590 [doc] AbstractDispatcherServletInitializer support DispatcherServlet from Root Context

Referenced from: commits ab5f125, 341d645, 5307a87, 21eb8db, 9845d9e

Backported to: 3.2.7

@spring-projects-issues spring-projects-issues added type: bug status: backported in: web labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: web status: backported type: bug
None yet

No branches or pull requests

2 participants