摘要
在软件开发过程中,采用代码生成技术可以显著减少开发者的重复性工作量。此外,还可以提升代码的质量并提高可维护性。本文讨论的代码生成引擎基于Velocity开源模板和Struts2注解,实现了模型驱动的开发模式。实践表明,其可以很好地满足基于业务对象模型生成全栈式Web应用代码的需求。
During the development of software, using the technique of code generation can considerably reduce the workload of repetitive code. In addition, it can also improve the quality and maintainability of code. In this paper, will introduce a code generation engine, which is based on the annotation of Struts2 and an open-source project, namely Velocity, implemented the development pattern of model driven. It is concluded that this engine is competent to generate full stack codes for Web applications on the basis of model for business logic.
出处
《电信工程技术与标准化》
2012年第8期85-87,共3页
Telecom Engineering Technics and Standardization
基金
国家自然科学基金(No.61072057
61101119
61121001
60902051)
长江学者和创新团队发展计划资助(No.IRT1049)
国家科技重大专项(No.2011ZX03002-001-01
移动互联网总体架构研究)