首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

在web项目中引出spring

2012-11-07 
在web项目中引入spring在web.xml中添加!-- 配置Spring配置文件的位置 --context-paramparam-namecon

在web项目中引入spring
在web.xml中添加

<!-- 配置Spring配置文件的位置 --><context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/applicationContext.xml,/WEB-INF/daoContext.xml</param-value></context-param><!-- 使用ContextLoaderListener初始化Spring容器 --><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener>

所需jar包


热点排行