Supercharge Your Innovation With Domain-Expert AI Agents!

Automatic code generation method based on JAVA language codes

A JAVA language and automatic generation technology, applied in the field of java language, can solve problems such as being prone to errors, and achieve the effect of improving work efficiency and reducing time

Pending Publication Date: 2020-10-16
紫光云技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, the present invention aims to propose an automatic code generation method based on JAVA language to solve some repetitive and error-prone processes in the development process of back-end microservices. The time spent on debugging the project shifts the focus to business development, performance tuning, etc.

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
  • Automatic code generation method based on JAVA language codes
  • Automatic code generation method based on JAVA language codes
  • Automatic code generation method based on JAVA language codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0020] In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", " The orientations or positional relationships indicated by "vertical", "horizontal", "top", "bottom", "inner" and "outer" are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and Simplified descriptions, rather than indicating or implying that the device or element referred to must have a particular orientation, be constructed and operate in a particular orientation, and thus should not be construed as limiting the invention. In addition, the terms "first", "second", etc. are used for descriptive purposes only, and should not be understood ...

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 an automatic generation method based on JAVA language codes. The method comprises the following steps of S1, enabling a user to create a java project and introduce a toolkit; S2, manually completing compiling of a template file as required; S3, customizing a java resource file by a user, and filling required template contents into the template file; S4, providing a standarddatabase table building statement corresponding to a class file needing to be generated through the template, and realizing mapping of sql to an entity class through rules such as a regular expression; S5, filling the template file generated in the step S2 with the mapped data to generate a required java file; and S6, generating a corresponding disk folder according to the template content in thestep S3, and moving the generated java file to the disk file. The method provided by the invention can effectively provide Java back-end developers with one-key generation of codes in engineering creation, debugging engineering, basic business addition, deletion, check and modification and the like, reduces the time of repeated operation, and improves the working efficiency.

Description

technical field [0001] The invention belongs to the technical field of java language, and in particular relates to a method for automatically generating codes based on the JAVA language. Background technique [0002] With the popularity of back-end system micro-services, the granularity of functional module splitting will become very detailed. One of the results is that developers need to create many Projects for functional development, and the configuration files and code packages in each Project include some SQL mapping, controller, etc. are similar, and these can be done through some templated means. Disadvantages of the existing technology: there are a large number of repetitive operations when creating projects and configurations; manually creating projects and other operations is easy to forget some key configuration modifications, and the error rate is high; finally, after the creation of projects and some basic codes is completed, the development Personnel also need...

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/35
CPCG06F8/315G06F8/35
Inventor 王鹏凯
Owner 紫光云技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More