if you want to include more application files and create a web application:
<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/applicationContext-1.xml, /WEB-INF/applicationContext-2.xml </param-value> </context-param>
wildcards also work, applicationContext * will have the same effect.
if you load the spring context manually, for example, from the code:
ApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "applicationContext-1.xml", "applicationContext-2.xml" });
source share