1、1.创建动态web工程
2、2.整合spring

3、在类目录下创建log4j.xml文件

4、在类目录下创建application.xml文件,配置springIOC容器
在web.xml文件中进行配置ContextLoaderListener

5、3.加入数据源
在类目录下写配置属性文件:db.properties

6、在application.xml文件中进行配置数据源

7、创建数据库sshdome
8、4.整合hibernate
在类目录下写hibernate配置文件

9、写entity类及entity映射文件

10、在application.xml文件中进行配置SessionFactory


11、5.写dao层
12、6.写service层
13、7.整合struts
在web.xml文件中进行配置StrutsPrepareAndExecuteFilter

14、在类目录下写配置文件struts.xml


15、8.创建IOC容器的同时,hibenater也会创建entity对应的表