Feb 16 2009
Spring annotations based config
Deployment descriptor
In your web.xml, include the Spring context loader listener:
XML:
-
<!-- Spring config -->
-
<context-param>
-
<param-name>contextConfigLocation</param-name>
-
<param-value>/WEB-INF/applicationContext*.xml</param-value>
-
</context-param>
-
<listener>
-
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
-
</listener>
This tells Spring to load all config files prefixed with "applicationContext".

