applicationContext.xml的资料位置就可以有两种默认实现

applicationContext.xml的文件位置就可以有两种默认实现
由此可见applicationContext.xml的文件位置就可以有两种默认实现:

第一种:直接将之放到/WEB-INF下,之在web.xml中声明一个listener、

第二种:将之放到classpath下,但是此时要在web.xml中加入<context-param>,用它来指明你的applicationContext.xml的位置以供web容器来加载。


http://blog.csdn.net/seng3018/article/details/6758860