Action、service类中以及struts.xml中都不能得到spring创建的bean,为什么
web.xml中要如下配置Spring:
<!-- Spring框架核心监听器 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml
</param-value>
</context-param>