課程
/后端開發
/Java
/基于SSH實現員工管理系統之框架整合篇
Action、service類中以及struts.xml中都不能得到spring創建的bean,為什么
2016-12-30
源自:基于SSH實現員工管理系統之框架整合篇 3-2
正在回答
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框架整合,逐層深入理解學習
1 回答struts.xml的文件能不能發一下。
6 回答求配置文件
1 回答配置文件問題
3 回答數據庫表的中文不能正常顯示
4 回答求老師的log4j.properties文件
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-12-31
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>