Spring:ContextLoaderListener作用 参考资料1 Spring之ContextLoaderListener的作用http://lei2006.blog.sohu.com/116206469.html使用spring除了添加必要的jar包,另外在web.xml一定要加上启动spring的监听器,这样配置在xml文件中的bean才会初始化如你在web.xml这样作了配置:(web.xml 2.4)