My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
contextloaderlistener  
One-sentence summary of this page.
Updated Jun 12, 2011 by serbrys...@gmail.com

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>

Powered by Google Project Hosting