SSH 三框架配置方法 配置顺序:stru ts2
0 spring 1 hibernate3
1 Stru ts: 图表 1 将struts2
0 的jar 包导入工程 图表 2 新建struts
xml 并配置如下 图表 3 编辑 web
xml 中的struts 过滤器 Spring: 图表 4 配置s pring1
2 类包 在web
xml 中写入: contextConfigLocation classpath:applicationContext
xml org
springframework
context
ContextLoaderListener 至此Spring 配置完毕
Hibernate: 图表 5 添加Hibernate 功能 图表 6 配置 Hibernate jar 包 1 图表 7 配置Hibernate jar 包2 图表 8 配置Hibernate jar 包3 图表 9 配置Hibernate jar 包4 图表 10 配置Hibernate jar 包5 补充问题解决: 1.运行Tomcat 时,提示:“The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java
library
path: D:\Program Files\Java\jdk1
0_05\bin;D:\Program Files\Apache Software Foundation\Tomcat 5
5\bin” 解决办法:下载 tcnative-1
dll 的 1
10 版本,加入到
/tomcat/bin 下
2.有时,当同时部署两个或以上类似项目到 Tomca