Unlock instant, AI-driven research and patent intelligence for your innovation.

Template based rear-end code generation method and system

A code generation and template technology, applied in the computer field, can solve the problems of low development efficiency, code redundancy, and long development cycle, and achieve the effect of improving development efficiency, avoiding code redundancy, and shortening development cycle.

Active Publication Date: 2018-06-29
上海链鲲技术有限公司
View PDF10 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a method and system for generating back-end code based on templates in order to overcome the problems of code redundancy and low development efficiency and long development cycle in the prior art.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Template based rear-end code generation method and system
  • Template based rear-end code generation method and system
  • Template based rear-end code generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0035] figure 1 It is a schematic diagram of the overall flow of a template-based back-end code generation method according to an embodiment of the present invention, as shown in figure 1 As shown, the present invention provides a template-based back-end code generation method, including:

[0036] S1. Obtain the business modules included in the business requirements according to the business requirements provided by the user, and query the business templates corresponding to the business modules from the preset template library;

[0037] S2. When the business template corresponding to the business module is found, import the business template into the back-end code editi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a template based rear-end code generation method and system, wherein the method comprises the following steps: acquiring a business module contained in a business requirement according to the business requirement provided by a user, and inquiring a business template corresponding to the business module from a preset template library; and when the business template corresponding to the business module is inquired, leading the business template to a rear-end code editing interface by using a preset template leading-in grammar, so as to generate a rear-end code corresponding to the business requirement. The method and the system, by template multiplexing, effectively avoid the phenomenon of code redundancy existing in rear-end development, and increase the overall development efficiency to a certain degree; meanwhile, by leading in the template in a front-end template library, a developer is facilitated to test while editing the rear-end code, without the need of recompilation and issue, and therefore, the overall development cycle is effectively shortened.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a template-based back-end code generation method and system. Background technique [0002] In the existing Internet website development, the MVC framework is usually used to divide the code into the view layer, data layer and control layer during back-end development, so as to realize the decoupling between data presentation and data processing. In actual development, business logic is usually integrated with the control layer and data layer, and code redundancy is common. [0003] For example, most of the request processing processes of general system websites are: processing request parameters -> verifying user permissions -> obtaining data -> processing data according to business logic and organizing them into a certain form -> returning the results in a certain form, including 5 in total model. Each request service can be regarded as a combina...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/30G06F8/38
CPCG06F8/31G06F8/38
Inventor 彭建
Owner 上海链鲲技术有限公司