課程
/后端開發(fā)
/Java
/基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇
Action、service類中以及struts.xml中都不能得到spring創(chuàng)建的bean,為什么
2016-12-30
源自:基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇 3-2
正在回答
web.xml中要如下配置Spring:
<!-- Spring框架核心監(jiān)聽器 -->
? <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>
舉報
本視頻教程主要介紹環(huán)境搭建和SSH框架整合,逐層深入理解學(xué)習
1 回答struts.xml的文件能不能發(fā)一下。
6 回答求配置文件
1 回答配置文件問題
3 回答數(shù)據(jù)庫表的中文不能正常顯示
4 回答求老師的log4j.properties文件
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-12-31
web.xml中要如下配置Spring:
<!-- Spring框架核心監(jiān)聽器 -->
? <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>