Skip to content

Instantly share code, notes, and snippets.

@dannyduc
dannyduc / web.xml
Created July 10, 2012 14:27
Setting up a single Spring container context in the web.xml file.
<!-- Creates the Spring Container shared by all Servlets and Filters -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Processes application requests -->
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>