struts + hibernate + spring开发流程

来源:互联网 发布:微老大软件 编辑:程序博客网 时间:2024/04/30 07:45

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

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