项目中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.applicationContext-service.xml Configuration: add your Service Interface and Service Implementation. [来源www.iocblog.net]


5.Add your service factory Get method to ServiceFactory.java


6.Build project and Generate the Description file(*.hbm.xml) of DTO.

[来源www.iocblog.net]
7.applicationContext.xml Configuration: add *.hbm.xml file to applicationContext for O/R mapping. 




文章整理:iocblog
版权申明:本站文章均来自网络,如有侵权,请联系我们,我们收到后立即删除,谢谢!
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有。