Java环境
SSH的基本包
spring整合hibernate加入jar包加入spring和aop所需必须包加入hibernate的必须包spring整合hibernate的必须包org.springframework.jdbc-3.1.3.RELEASE.jarorg.springframework.orm-3.1.3.RELEASE.jarorg.springframework.transaction-3.1.3.RELEASE.jar
加入配置文件加入spring的配置文件加入hibernate的配置文件
加入配置代码加入对SessionFactory的配置加入数据源(DataSource)的配置
spring和struts2的整合加入整合包加入struts的必须包struts整合spring的包struts2-spring-plugin-2.3.15.3.jarspring整合struts的包org.springframework.web-3.1.3.RELEASE.jarorg.springframework.web.servlet-3.1.3.RELEASE.jarorg.springframework.web.struts-3.1.3.RELEASE.jar
加入struts的配置文件struts.xml
在web.xml中配置struts
在web.xml配置spring
在struts.xml中配置对象创建工具为spring
在struts中配置action时需要将class设置为action在spring中配置的id名,而不能使用类的全名