Abstract:It will improve production rate and release developer's burden by using software reusing technology. Automatic code generation is one of most commonly used methods. Based on SSH framework, this paper studied its control layer. After studying the javabean data which generated by hibernate, this paper auto-generated the control layer codes by using Model generated technology and config tree method. Producing a Demo System and testing it. the Demo System provide a friendly interface based on SWT framework.