Method and system for automatically generating engineering front-end codes based on JDBC
An automatic generation and engineering technology, applied in the direction of creating/generating source code, etc., can solve problems such as communication errors, waste of human resources, inability to adapt to the front-end framework, etc., to facilitate page addition, reduce repetitive work, and facilitate style management Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Such as Figure 1-2 As shown, a method for automatically generating engineering front-end code based on JDBC, including using JDBC to obtain the database table structure;
[0051] Perform data conversion on the obtained database table structure according to preset rules, and generate Java objects;
[0052] Build Freemarker templates;
[0053] Correspondingly input each parameter in the Java object into the Freemarker template to generate the front-end code.
[0054] The inventive method mainly uses and utilizes the JDBC (Java Database Connectivity, Java Database Connectivity, JDBC for short) interface provided by each database manufacturer, uses Java to read the database configuration information, and generates the front-end engineering code according to the Freemarker template of design, and removes the repetitive labor of developers , saving development costs; and using templates to generate pages can unify project codes and facilitate later maintenance and manageme...
Embodiment 2
[0084] On the other hand, the present invention also provides a system for implementing the above method, such as image 3 shown, including:
[0085] JDBC module, used to obtain the database table structure;
[0086] The data conversion module is used to perform data conversion on the obtained database table structure according to preset rules, and generate Java objects;
[0087] Freemarker configuration module for building Freemarker templates;
[0088] A code generation module is used for correspondingly inputting each parameter in the Java object into the Freemarker template to generate the front-end code.
[0089] Specifically, in the process of obtaining the database table structure, the JDBC module uses JDBC as the interface basis, performs corresponding configurations according to databases in different environments, and then reads the database table structure through a Java program.
[0090] The table structure data obtained by the JDBC module is transmitted to the ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com