1<context-param>
<param-name> contextConfigLocation</param-name>
<param-value> /WEB-INF/acegi/acegi-appContext.xml</param-value>
</context-param> //在web启动时文件配置信息放在contextConfigLocation
<listener>
<listener-class> org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> //在web启动时读取contextConfigLocation得到配置文件信息,生成BeanFactory放在servletContet中