CN114398093A - Reading method for reading metadata based on annotation - Google Patents
Reading method for reading metadata based on annotation Download PDFInfo
- Publication number
- CN114398093A CN114398093A CN202111563787.9A CN202111563787A CN114398093A CN 114398093 A CN114398093 A CN 114398093A CN 202111563787 A CN202111563787 A CN 202111563787A CN 114398093 A CN114398093 A CN 114398093A
- Authority
- CN
- China
- Prior art keywords
- metadata
- reading
- annotation
- information
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a reading method based on annotation reading metadata, which comprises the following steps: step S1: providing a configuration file of a package in which metadata to be scanned is located; step S2: providing an implementation class of an org, spring frame, boot, application runner interface of spring boot; step S3: before the application is started, all classes of the packet path of the packet in which the metadata is located in step S1 are parsed, metadata information with annotation tags is extracted, and the extracted metadata information is synchronized to the low-code development platform. The invention has high reading efficiency; the method interface and the method information can be quickly provided for the low-code development platform for use.
Description
Technical Field
The invention relates to the field of computer software, in particular to a reading method for reading metadata based on annotation.
Background
In China, the low-code development platform is rapidly developed like a spring bamboo shoot in the late rain in recent years, and what is the low-code development platform is like AppCube in Huashi, Yitake in Ali, YonBuilder of friends and the like?
The low-code is taken as the name to mean that a developer writes few codes, a large amount of development work is completed through visual arrangement tools such as interfaces, logics and objects provided by a low-code platform, and uncertainty factors in software development are reduced, so that the development efficiency is greatly improved, enterprises can reduce development cost and price, technical and personnel thresholds are reduced, application is rapidly innovated, and rapid trial and error and agile iteration are realized.
The low-code platform mainly provides the capability of rapidly developing the application for the following two types of people:
1. the service personnel can rapidly assemble the application system by providing a large number of interface templates, service templates, process templates and object models and assembling the application system in a building block type according to actual service requirements, so that rapid application innovation is realized.
2. Through the page layout tool and the process layout capability, a developer can modularize and micro-service the existing large amount of services on a platform and then write a small amount of codes to realize the application management system required by the developer.
The minimum unit of orchestration provided by low code development platforms is a method interface. How to get the parameters in the method, return the result, and its method information? At this time, the method information needs to be converted into metadata for arranging by a low-code development platform; how to read the metadata efficiently becomes a technical problem to be solved urgently.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a reading method for reading metadata based on annotations is provided.
The technical scheme of the invention is as follows: a reading method based on annotation reading metadata comprises the following steps: step S1: providing a configuration file of a package in which metadata to be scanned is located; step S2: providing an implementation class of an org, spring frame, boot, application runner interface of spring boot; step S3: before the application is started, all classes of the packet path of the packet in which the metadata is located in step S1 are parsed, metadata information with annotation tags is extracted, and the extracted metadata information is synchronized to the low-code development platform.
The reading method based on annotation reading metadata is applied to the technical scheme, and comprises the following steps: in step S3, the metadata information with the interface metadata annotation tag or the Model metadata annotation tag is extracted.
The annotation-based metadata reading method is applied to each technical scheme, and comprises the following steps: in step S3: the extracted metadata information is synchronized to a low-code development platform in a zookeeper mode.
The annotation-based metadata reading method is applied to each technical scheme, and comprises the following steps: the metadata information includes class information and method information.
The annotation-based metadata reading method is applied to each technical scheme, and comprises the following steps: the interface metadata annotation tag comprises: @ OmApi: the mark is marked on the class or the interface and is used for describing the class or the interface; @ OmApiOperation: marked on the method for describing the function of the method; @ OmApiImpliitParam: marking on a specific method for describing method parameters; @ OmApiPaaram: marked on the method for describing the method parameters; @ OmApiImpliitParams,: the complex form of @ OmApiImpliitParam.
The annotation-based metadata reading method is applied to each technical scheme, and comprises the following steps: the Model class metadata annotation tag comprises: @ ApiModel: marking a Model entity class; @ ApiModelProperty: mark the attribute.
The invention has the beneficial effects that:
the invention provides the configuration file of the package where the metadata to be scanned is located and the implementation class of the org, spring frame, boot, application runner interface of the spring boot; thus, before the application is started, all classes of the packet path of the application can be analyzed according to the configuration file of the packet in which the metadata is located, and the implementation classes of the org.springframe.boot.application runner interfaces are obtained; extracting metadata information with annotation marks, and synchronizing the extracted metadata information to a low-code development platform; in this way, the metadata is read by extracting the annotation tag, and the extracted metadata information is synchronized to a low-code development platform in a zookeeper or other modes; the reading efficiency is high; the method interface and the method information can be quickly provided for the low-code development platform for use.
Detailed Description
The present invention will be described in detail with reference to the following specific examples.
The embodiment provides a reading method based on annotation reading metadata, which comprises the following steps: step S1: providing a configuration file of a package in which metadata to be scanned is located; step S2: providing an implementation class of an org, spring frame, boot, application runner interface of spring boot; step S3: before the application is started, all classes of the packet path of the packet in which the metadata is located in step S1 are parsed, metadata information with annotation tags is extracted, and the extracted metadata information is synchronized to the low-code development platform. In step S3, metadata information with an interface metadata annotation tag or a Model metadata annotation tag is extracted; and synchronizing the extracted metadata information to a low-code development platform in a zookeeper mode.
The metadata information includes class information and method information. The interface metadata annotation tag comprises: @ OmApi: the mark is marked on the class or the interface and is used for describing the class or the interface;
@ OmApiOperation: marked on the method for describing the function of the method;
@ OmApiImpliitParam: marking on a specific method for describing method parameters;
@ OmApiPaaram: marked on the method for describing the method parameters;
@ OmApiImpliitParams,: the complex form of @ OmApiImpliitParam. The Model class metadata annotation tag comprises: @ ApiModel: marking a Model entity class;
@ ApiModelProperty: mark the attribute.
The method mainly comprises the steps of providing a configuration file of a package where metadata to be scanned is located, such as an om.scan-package; providing an implementation Class of an org, spring frame, boot, application runner interface of a spring boot, analyzing all classes of a packet path of a packet where metadata is located before application starting is completed, and extracting metadata information (Class information and method information) with an interface metadata annotation or Model metadata annotation mark; and finally, synchronizing the metadata information to a low-code development platform in a zookeeper or other modes. The invention provides the configuration file of the package where the metadata to be scanned is located and the implementation class of the org, spring frame, boot, application runner interface of the spring boot; thus, before the application is started, all classes of the packet path of the application can be analyzed according to the configuration file of the packet in which the metadata is located, and the implementation classes of the org.springframe.boot.application runner interfaces are obtained; extracting metadata information with annotation marks, and synchronizing the extracted metadata information to a low-code development platform; in this way, the metadata is read by extracting the annotation tag, and the extracted metadata information is synchronized to a low-code development platform in a zookeeper or other modes; the reading efficiency is high; the method interface and the method information can be quickly provided for the low-code development platform for use.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (6)
1. A reading method for reading metadata based on annotation is characterized by comprising the following steps:
step S1: providing a configuration file of a package in which metadata to be scanned is located;
step S2: providing an implementation class of an org, spring frame, boot, application runner interface of spring boot;
step S3: before the application is started, all classes of the packet path of the packet in which the metadata is located in step S1 are parsed, metadata information with annotation tags is extracted, and the extracted metadata information is synchronized to the low-code development platform.
2. A reading method for reading metadata based on annotation according to claim 1, characterized in that: in step S3, the metadata information with the interface metadata annotation tag or the Model metadata annotation tag is extracted.
3. The reading method of reading metadata based on annotation according to claim 2, wherein: in step S3: the extracted metadata information is synchronized to a low-code development platform in a zookeeper mode.
4. The reading method of reading metadata based on annotation according to claim 2, wherein: the metadata information includes class information and method information.
5. The annotation-based reading method for reading metadata according to claim 4, wherein: the interface metadata annotation tag comprises:
@ OmApi: the mark is marked on the class or the interface and is used for describing the class or the interface;
@ OmApiOperation: marked on the method for describing the function of the method;
@ OmApiImpliitParam: marking on a specific method for describing method parameters;
@ OmApiPaaram: marked on the method for describing the method parameters;
@ OmApiImpliitParams,: the complex form of @ OmApiImpliitParam.
6. The reading method of reading metadata based on annotation according to claim 5, wherein: the Model class metadata annotation tag comprises:
@ ApiModel: marking a Model entity class;
@ ApiModelProperty: mark the attribute.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111563787.9A CN114398093A (en) | 2021-12-20 | 2021-12-20 | Reading method for reading metadata based on annotation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111563787.9A CN114398093A (en) | 2021-12-20 | 2021-12-20 | Reading method for reading metadata based on annotation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114398093A true CN114398093A (en) | 2022-04-26 |
Family
ID=81226577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111563787.9A Pending CN114398093A (en) | 2021-12-20 | 2021-12-20 | Reading method for reading metadata based on annotation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114398093A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648587A (en) * | 2016-09-28 | 2017-05-10 | 福州宇嘉软件科技有限公司 | Annotation-based Web application code generation method |
CN109710238A (en) * | 2018-12-20 | 2019-05-03 | 国云科技股份有限公司 | A kind of code generating method based on Spring Cloud |
CN111666072A (en) * | 2020-06-09 | 2020-09-15 | 南京及物智能技术有限公司 | Software code and document robot method |
CN112835560A (en) * | 2021-03-04 | 2021-05-25 | 广州图创计算机软件开发有限公司 | WEB multi-terminal low-code intelligent software development platform |
CN113296785A (en) * | 2021-05-24 | 2021-08-24 | 平安养老保险股份有限公司 | Document generation method, system, device and readable storage medium |
CN113626225A (en) * | 2021-10-11 | 2021-11-09 | 中航金网(北京)电子商务有限公司 | Program calling method, terminal device and medium |
-
2021
- 2021-12-20 CN CN202111563787.9A patent/CN114398093A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648587A (en) * | 2016-09-28 | 2017-05-10 | 福州宇嘉软件科技有限公司 | Annotation-based Web application code generation method |
CN109710238A (en) * | 2018-12-20 | 2019-05-03 | 国云科技股份有限公司 | A kind of code generating method based on Spring Cloud |
CN111666072A (en) * | 2020-06-09 | 2020-09-15 | 南京及物智能技术有限公司 | Software code and document robot method |
CN112835560A (en) * | 2021-03-04 | 2021-05-25 | 广州图创计算机软件开发有限公司 | WEB multi-terminal low-code intelligent software development platform |
CN113296785A (en) * | 2021-05-24 | 2021-08-24 | 平安养老保险股份有限公司 | Document generation method, system, device and readable storage medium |
CN113626225A (en) * | 2021-10-11 | 2021-11-09 | 中航金网(北京)电子商务有限公司 | Program calling method, terminal device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101661512B (en) | System and method for identifying traditional form information and establishing corresponding Web form | |
CN101118515B (en) | Automatically testing method and apparatus for list | |
US8346773B2 (en) | Product classification system | |
CN110795287B (en) | Data recovery method, system, electronic equipment and computer storage medium | |
Baier et al. | Bridging abstraction layers in process mining by automated matching of events and activities | |
CN109710238A (en) | A kind of code generating method based on Spring Cloud | |
CN101996131A (en) | Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word | |
CN113255614A (en) | RPA flow automatic generation method and system based on video analysis | |
Leno et al. | Automated discovery of data transformations for robotic process automation | |
CN112651218A (en) | Automatic generation method and management method of bidding document, medium and computer | |
WO2006136055A1 (en) | A text data mining method | |
CN113312033A (en) | Template protocol generation and management method | |
CN115878003A (en) | RPA webpage operation automation method and system based on Transformer | |
CN115983571A (en) | Construction project auditing method and system based on artificial intelligence for construction industry | |
US20130326349A1 (en) | Method and System to Perform Multiple Scope Based Search and Replace | |
CN114398093A (en) | Reading method for reading metadata based on annotation | |
CN112906349A (en) | Data annotation method, system, equipment and readable storage medium | |
CN111026604B (en) | Log file analysis method and device | |
CN1804870B (en) | Analysis alternates in context trees | |
CN110245728A (en) | A kind of device management method of aluminium electrolysis enterprise | |
CN106873956B (en) | Code completion method and device based on continuous keywords | |
CN111667214B (en) | Goods information acquisition method and device based on two-dimensional code and electronic equipment | |
CN114237565A (en) | Entry design method for arranging flow in low-code development platform | |
Badr et al. | A semantic based framework for facilitating integration in erp systems | |
CN110543293A (en) | Standardized use method based on computer software development |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |