<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/classes/applicationContext-hibernate.xml, /WEB-INF/classes/applicationContext-service.xml, /WEB-INF/applicationContext-acegi-security.xml /WEB-INF/classes/applicationContext-pjtz.xml, </param-value> </context-param>
或
<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param>
在web应用的配置文件web.xml中常常会见到这样的一段代码,其实它是指定spring配置文件的
如果载入多个配置文件,在param-value里以逗号分隔,如果缺省这种配置,默认加载/WEB-INF/ applicationContext.xml文件
contextConfigLocation是参数值,固定不变