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.