三大框架ssh整合(一)

1,jar整合

  struts版本:2.3.15.3

  hibernate版本:3.6.10

  spring版本:3.2.0

1.1 struts中需要的.jar文件

  全部都在该struts-2.3.15.3appsstruts2-blankWEB-INFlib目录下

spring 中需要的.jar文件

l  基础:4+1 , beans、core、context、expression , commons-logging (struts已经导入)

l  AOP:aop联盟、spring aop 、aspect规范、spring aspect

l  db:jdbc、tx

l  测试:test

l  web开发:spring web

l  驱动:mysql

l  连接池:c3p0

l  整合hibernate:spring orm

hibernate中需要的.jar文件

%h%hibernate3.jar                     核心

%h%lib equired                 必须

%h%libjpa                        jpa规范 (java persistent api 持久api),hibernate注解开发 @Entity @Id 等

  整合log4j

       导入 log4j...jar (struts已经导入)

       整合(过渡):slf4j-log4j12-1.7.5.jar

l  二级缓存

       核心:ehcache-1.5.0.jar

       依赖:

              backport-util-concurrent-2.1.jar

              commons-logging  (存在)

  整合包

l  spring整合hibernate: spring orm

l  struts 整合spring:struts2-spring-plugin-2.3.15.3.jar

删除重复jar包

总共需要的.jar包一共有39个

原文地址:https://www.cnblogs.com/zjf-293916/p/7444216.html