一. 调用applicationContext的bean
applicationContext xml文件是在Tomcat启动后自动加载的,如果要调用里面的bean,需要增加一个listener
在web.xml中增加如下代码
<listener>
<listener-class>org.sp