Introduction
spring web中 ContextLoaderListener
Details
用来在j2ee container 启动中加载spring的配置文件 默认文件时放在web-inf下面的 如果放在了src中 将会生成在web-inf/classes/ 目录下
加载的时候需要 用 contextParam中指定 contextConfigLocation
如下 :
<context-param>
<param-name>
contextConfigLocation
</param-name>
<param-value>
/WEB-INF/classes/applicationContext.xml
</param-value>
</context-param>