1、创建动态web工程
2、整合spring
3、在类目录下创建log4j.xml文件
4、在类目录下创建application.xml文件,配置springIOC容器在we水瑞侮瑜b.xml文件中进行配置ContextLoaderListener
5、加入数据源在类目录下写配置属性文件:db.properties
6、在application.xml文件中进行配置数据源
7、创建数据库sshdome
8、整合hibernate在类目录下写hibernate配置文件
9、写entity类及entity映射文件
10、在application.xml文件中进行配置SessionFactory
11、写dao层
12、写service层
13、整合struts在web.xml文件中进行配置StrutsPrepareAndExecuteFilter
14、在类目录下写配置文件struts.xml
15、创建IOC容器的同时,hibenater也会创建entity对应的表