1,搭建spring环境
a.在pom.xml中添加spring的常用依赖
b.resources目录下,准备spring的配置文件app.xml
c.在web.xml文件中,准备spring监听器和上下文参数
2,搭建hibernate环境
a.在pom.xml中添加hibernate依赖
同时添加dbcp数据源(也可以c3p0,druid..)
b.准备实体类和实体映射文件
c.配置数据源和链接工厂
3,搭建status2环境
a.添加struts2依赖
添加servlet-api依赖
添加struts2-springplugin依赖
b.web.xml中,配置struts2核心过滤器