您的位置:首页 > 编程语言 > Java开发

项目中Struts+Spring+Hibernate的基本流程

2006-10-29 23:04 429 查看
项目中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弄一个东西,发现很多时间不知道如何设计各层的先后顺序,于是找到了这个.

先记录下来,下次有空再好好理解一下.

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1356031
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: