weibo_小宝宝囍_0
2016-12-30 14:45
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>
基于SSH实现员工管理系统之框架整合篇
49830 学习 · 344 问题
相似问题