Why does Spring MVC need at least two contexts?
Having a root web application context plus a child servlet context is just an option. If you know that your application won’t have a second servlet, it’s arguably simpler to have one single Spring context for the whole web application. You can achieve that setup by simply removing the ContextLoaderListener (and the accompanying contextConfigLocation context-param) … Read more