Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11357

AbstractAnnotationConfigDispatcherServletInitializer does not allow consolidating all configuration into the "root" context

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Complete
    • 3.2.6, 4.0 GA
    • 3.2.7, 4.0.1
    • Web
    • None
    • true

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rstoya05-aop Rossen Stoyanchev
              rstoya05-aop Rossen Stoyanchev
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 38 weeks, 1 day ago