Font Size: a A A

Design And Implementation Of B/S Architecture Code Automatic Generation System

Posted on:2020-10-11Degree:MasterType:Thesis
Country:ChinaCandidate:J L HanFull Text:PDF
GTID:2428330602468335Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of information technology,a variety of software are demanded to meet the needs of work and life.Among them,management information system software based on B/S architecture is more and more widely used.However,there are great similarities between such software modules which cause the coding becoming a repetitive task to a large extent,while this repetitive work increases development and maintenance costs.With the growth of application volume,the logic becomes more and more complex.It is significant to consider how to reduce the developers' repeated coding which can not only reduce the cost of software development,but also shorten the project lifecycle.Automatic code generation technology can solve the above problems better.General module in the program and some basic business function modules are generated automatically using code generation technology,so developers can focus on complex business logic and greatly improve productivity.Because the automatic code generation technology has many advantages over manual coding,the prospect of automatic code generation technology is very extensive.This paper studies the implementation principle and method of the automatic code generation system,and then the design and implementation method of the automatic code generation system based on B / S architecture is proposed.Firstly,this paper introduces the related theories and technologies of SSM(Spring MVC,Spring,MyBatis)architecture and RESTful architecture style briefly.SSM architecture is used in target projects and RESTful architecture style is used to achieve front-end and back-end interaction.Secondly,this paper analyzes the program code of B/S architecture,and divides the program code into fixed invariant part and dynamic variable part.At the same time,the system customizes a set of labels with corresponding meanings,and replaces the dynamic variable part of the program with this set of labels.Then,the code templates completed.Users add the entity description information related to the target project and generate the entity description file through system processing.After reading the entity description file,the system parses the entity related information and maps the entity information into the code template,replacing the corresponding labels into the final code.Thus,users can generate the code by adding the entity description information of the target project.Engineers can develop based on this.It is very efficiency.The experience of traditional automatic code generation system is used for reference by This B/S architecture automatic code generation system which realizes two parts: general module and system function module.General module includes user management,department management,permission management and log management and system function module includes entity management,code generation and project deployment.By using this system,the basic business functions can be generated quickly and the software development framework can also be built quickly,which is convenient for subsequent development.
Keywords/Search Tags:Automatic code generation, SSM architecture, Entity description file, Code template
PDF Full Text Request
Related items