The invention discloses a visual code rapid generation method and
system based on template configuration. The method comprises the steps of firstly
carding code standards, and constructing a standard structure conforming to the code specifications; secondly, an
engineering template, a code template, a view template and a
layout template are defined, the
engineering template is used for rapidly initializing and standardizing a front-end and rear-end
foundation engineering structure, the code template manages various front-end and rear-end codes in a classified mode, the
layout template conducts
layout classification on the view template, and the view template generates a visual view designer Schema; then, a user carries out configuration according to service requirements through the visual configuration interface, and a visual view is generated; and finally, according to user configuration and a defined template, quickly generating
scaffold engineering and front and rear end codes which are adaptive to
business requirements. Dynamic visual configuration is adopted for
code generation logic, the flexibility and efficiency of
code generation are greatly improved, the method is suitable for various
software development scenes, the development cost can be effectively reduced, and the
development period is shortened.