1.添加Struts配置
[img]http://dl.iteye.com/upload/attachment/0081/2651/4b36f5be-90c4-3248-b48c-0da24e6f28f3.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2653/b879a5be-cc1e-33c4-94e2-a7fd9d4c5bb8.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2655/f7e4d2ee-d900-3813-b6eb-41bdb62130e1.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2655/f7e4d2ee-d900-3813-b6eb-41bdb62130e1.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2665/566aec74-a3d3-3657-b4fb-6d1c527c2a6c.png[/img]
2.添加数据库连接
[img]http://dl.iteye.com/upload/attachment/0081/2663/c9a7e89a-32f9-3a12-bfcd-0bb7a840ff9f.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2671/e1baffe0-8ae6-306c-adbc-89d81b040941.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2683/0d946305-5d8e-3ff3-91b7-6b74ef3bea1e.png[/img]
3.添加Spring配置
[img]http://dl.iteye.com/upload/attachment/0081/2657/c4254d05-a3b9-3fc0-a24e-2ec75ba865b9.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2659/d6f3a84d-b77e-3bf1-9a71-62035d5de974.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2661/deb0023c-f06d-303a-b0d1-e5bf4236e68a.png[/img]
4.添加Hibernate配置
[img]http://dl.iteye.com/upload/attachment/0081/2669/46b56a7e-ee6e-32c4-8791-bca0b686abd8.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2693/f21b3b70-fc40-3031-b4ff-213c18f6f6c4.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2675/c55d976f-d37a-3a14-9f36-0d40f67c6a76.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2673/7b3fe30f-673e-3702-9029-614381a8bf1e.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2677/97af7ab6-a7ba-31e8-90b0-1ea6638a4bf5.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2679/6ddb495b-44e4-33c5-a77d-b6348c501509.png[/img]
5.web.Xml的截图
[img]http://dl.iteye.com/upload/attachment/0081/2681/cc8491c7-ba37-3163-8680-82a82bd9999f.jpg[/img]
按图片完成步骤后在web.xml中添加下面配置文件
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/application*.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
[img]http://dl.iteye.com/upload/attachment/0081/2651/4b36f5be-90c4-3248-b48c-0da24e6f28f3.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2653/b879a5be-cc1e-33c4-94e2-a7fd9d4c5bb8.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2655/f7e4d2ee-d900-3813-b6eb-41bdb62130e1.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2655/f7e4d2ee-d900-3813-b6eb-41bdb62130e1.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2665/566aec74-a3d3-3657-b4fb-6d1c527c2a6c.png[/img]
2.添加数据库连接
[img]http://dl.iteye.com/upload/attachment/0081/2663/c9a7e89a-32f9-3a12-bfcd-0bb7a840ff9f.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2671/e1baffe0-8ae6-306c-adbc-89d81b040941.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2683/0d946305-5d8e-3ff3-91b7-6b74ef3bea1e.png[/img]
3.添加Spring配置
[img]http://dl.iteye.com/upload/attachment/0081/2657/c4254d05-a3b9-3fc0-a24e-2ec75ba865b9.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2659/d6f3a84d-b77e-3bf1-9a71-62035d5de974.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2661/deb0023c-f06d-303a-b0d1-e5bf4236e68a.png[/img]
4.添加Hibernate配置
[img]http://dl.iteye.com/upload/attachment/0081/2669/46b56a7e-ee6e-32c4-8791-bca0b686abd8.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2693/f21b3b70-fc40-3031-b4ff-213c18f6f6c4.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2675/c55d976f-d37a-3a14-9f36-0d40f67c6a76.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2673/7b3fe30f-673e-3702-9029-614381a8bf1e.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2677/97af7ab6-a7ba-31e8-90b0-1ea6638a4bf5.png[/img]
[img]http://dl.iteye.com/upload/attachment/0081/2679/6ddb495b-44e4-33c5-a77d-b6348c501509.png[/img]
5.web.Xml的截图
[img]http://dl.iteye.com/upload/attachment/0081/2681/cc8491c7-ba37-3163-8680-82a82bd9999f.jpg[/img]
按图片完成步骤后在web.xml中添加下面配置文件
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/application*.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>