![](http://static.oschina.net/uploads/img/201505/31142736_Nel7.jpg)
2。添加struts1.2 框架支持
![](http://static.oschina.net/uploads/img/201505/31142737_1wO6.jpg)
3 稍作修改
![](http://static.oschina.net/uploads/img/201505/31142737_15fQ.jpg)
4结果这样
![](http://static.oschina.net/uploads/img/201505/31142737_VNVv.jpg)
5添加spring3.0支持
![](http://static.oschina.net/uploads/img/201505/31142737_zkNj.jpg)
6勾选jar包(一)
![](http://static.oschina.net/uploads/img/201505/31142737_Almd.jpg)
7勾选jar包(二)
![](http://static.oschina.net/uploads/img/201505/31142738_agNn.jpg)
8保存到目录下
![](http://static.oschina.net/uploads/img/201505/31142738_YNOF.jpg)
9next选择在WebRoot WEB-INF下
![](http://static.oschina.net/uploads/img/201505/31142738_j7hu.jpg)
10结果
![](http://static.oschina.net/uploads/img/201505/31142739_9wud.jpg)
11添加hibernate支持
![](http://static.oschina.net/uploads/img/201505/31142739_NrXH.jpg)
12next
![](http://static.oschina.net/uploads/img/201505/31142739_GsYd.jpg)
13交给spring管理
![](http://static.oschina.net/uploads/img/201505/31142740_Zkjr.jpg)
14已存在
![](http://static.oschina.net/uploads/img/201505/31142740_r4uW.jpg)
15连接数据库,sqlserver
![](http://static.oschina.net/uploads/img/201505/31142741_gQfV.jpg)
16取消
![](http://static.oschina.net/uploads/img/201505/31142741_6vXM.jpg)
17结果配置了数据库
![](http://static.oschina.net/uploads/img/201505/31142742_PDcG.jpg)
18重启tomcat没问题
![](http://static.oschina.net/uploads/img/201505/31142742_hROz.jpg)
19数据库中建立一张表
![](http://static.oschina.net/uploads/img/201505/31142742_syCc.jpg)
20生成hibernate中vo的配置文件
![](http://static.oschina.net/uploads/img/201505/31142742_bJZn.jpg)
![](http://static.oschina.net/uploads/img/201505/31142742_En21.jpg)
21新建一个包和类
![](http://static.oschina.net/uploads/img/201505/31142743_TWza.jpg)
22
![](http://static.oschina.net/uploads/img/201505/31142743_qi2W.jpg)
23选择native
![](http://static.oschina.net/uploads/img/201505/31142743_QPf6.jpg)
24选择这个
![](http://static.oschina.net/uploads/img/201505/31142743_S4gD.jpg)
![](http://static.oschina.net/uploads/img/201505/31142744_u0wh.jpg)
25
![](http://static.oschina.net/uploads/img/201505/31142744_hPlv.jpg)
28依次增加每个表中字段
![](http://static.oschina.net/uploads/img/201505/31142745_HuR1.jpg)
29next选择父类和parmter
![](http://static.oschina.net/uploads/img/201505/31142746_FDJc.jpg)
![](http://static.oschina.net/uploads/img/201505/31142746_00Ks.jpg)
![](http://static.oschina.net/uploads/img/201505/31142746_5BOP.jpg)
![](http://static.oschina.net/uploads/img/201505/31142746_pyhQ.jpg)
![](http://static.oschina.net/uploads/img/201505/31142746_uuGV.jpg)
34webxml配置
![](http://static.oschina.net/uploads/img/201505/31142747_z7DU.jpg)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理