You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the sub-class AbstractAnnotationConfigDispatcherServletInitializer has already allowed this for quite some time (see #15982). So all that any sub-class would have to do is create an instance of a WebApplicationContext. We could probably pre-implement createServletApplicationContext to do just that and feature more prominently the fact that you can put all configuration in the root context.
Rossen Stoyanchev I must have messed something up previously because the use case I wanted appears to work. For example, the following does appear to work:
I've done updates to the Javadoc and reference to better document how to have a single application context in both Java config and web.xml. Aside from that everything works as expected.
Rob Winch opened SPR-16041 and commented
It would be nice if
AbstractDispatcherServletInitializer
made it simple to register theDispatcherServlet
using the rootApplicationContext
Affects: 4.3.11, 5.0 GA
Issue Links:
Referenced from: commits 32d78e6
The text was updated successfully, but these errors were encountered: