I have a webapp that uses SpringMVC DispatcherServlet to load a WebApplicationContext. The Spring reference documentation says:
\"each DispatcherServ
We have applicationContext.xml
in theWEB-INF
directory, and the beans in that config are available to the spring-servlet.xml
config, its defined using
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
By the way its the ContextLoaderListener
which is responsible for managing the root context
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>