项目中Struts+Spring+Hibernate的基本流程
Struts+Spring+Hibernate develepment process:
1.Write your business class : DTO,FormBean,Action,Service Interface,Service Implementation.
2.Write JSP pages.
3.struts-config.xml Configuration : FormBean,Action,Forward pages.
4.application Context-service.xml Configuration: add your Service Interface and Service Implementation.
5.Add your service factory Get method to ServiceFactory.java
6.Build project and Generate the Description file(*.hbm.xml) of DTO.
7.applicationContext.xml Configuration: add *.hbm.xml file to applicationContext for O/R mapping
这两天在用struts+hibernate弄一个东西,发现很多时间不知道如何设计各层的先后顺序,于是找到了这个.
先记录下来,下次有空再好好理解一下.
本文详细介绍了使用Struts+Spring+Hibernate(SSH)框架进行项目开发的基本步骤,从编写业务类到配置各组件,帮助读者了解如何有序地组织各层代码。

被折叠的 条评论
为什么被折叠?



