[color=green]在web.xml中添加[/color]
[color=green]所需jar包[/color]
[img]http://dl.iteye.com/upload/picture/pic/115450/b8d5eda8-3c4f-3047-b376-edc8dd7bb2c1.jpg[/img]
<!-- 配置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>
[color=green]所需jar包[/color]
[img]http://dl.iteye.com/upload/picture/pic/115450/b8d5eda8-3c4f-3047-b376-edc8dd7bb2c1.jpg[/img]