Micro-service-based dictionary and field analysis method and device

By obtaining the data object attribute relationship of the microservice interface and generating annotation analysis definitions, the problem of inconsistency between data dictionary and field analysis between microservices is solved, and the unified generation and cache of data dictionaries is realized, reducing the difficulty and complexity of R&D.

CN119227651APending Publication Date: 2024-12-31ROSE JUXIN (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310798030.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the microservice architecture, data dictionary and field analysis are inconsistent between microservices independently deployed, which makes it difficult, inefficient, and lack of operability to resolve dictionary and field calls by R&D personnel between different services.

Method used

By obtaining the format definition information of the data dictionary and fields, the data object attribute relationship of the microservice interface is generated, and it is added to the annotation parser to form the data dictionary and field analysis definition. The XML structure is configured and cached to generate the microservices in a unified manner. data dictionary and fields.

Benefits of technology

The consistency between data dictionary and field analysis between microservices is achieved, which reduces the operation difficulty of R&D personnel, simplifies the use of dictionaries and fields, and avoids data duplication and repeated development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119227651A_ABST
    Figure CN119227651A_ABST
Patent Text Reader

Abstract

The invention discloses a micro-service-based dictionary and field analysis method and device, and the method comprises the steps: obtaining entity objects under different micro-services, and generating the aliases of the attributes of the entity objects; defining a micro-service interface name, an interface input parameter and output parameter type, an entity attribute name and a dictionary attribute alias in an XML file to form format definitions of a data dictionary and an entity attribute field; and adding and forming annotations and analysis configurations of all the dictionary data. According to the technical scheme disclosed by the invention, the XML configuration analysis is performed on the standardized definition of the micro-service interface, the interface input parameter and the relation of the output participating data object, so that the field mapping between the alias of the data object and the attribute of the data object is completed, and the data dictionary analysis value of the entity object of the micro-service interface is generated; the data analysis under different micro-services is prevented from repeatedly defining interfaces, the dictionary and field data analysis difficulty is reduced, and the data dictionary and field analysis under the micro-services has universal configurable operability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a microservice-based dictionary and field parsing method. Background Art

[0002] As a variation of the service-oriented architecture (SOA) architectural style, it advocates dividing a single application into a set of small services that coordinate and cooperate with each other. Each service runs in its own independent process, and services communicate with each other using lightweight communication mechanisms. Each service is built around a specific business and can be deployed independently. A single application consists of many loosely coupled and independent smaller components or services. These services usually have their own stacks, including databases and data models, and communicate with each other through APIs. Their segmented services organized by business capabilities usually have contexts.

[0003] In related technologies, each independently deployed and running service has system parameter data and business parameter data, where system parameter data includes service running basic environment parameters and running parameters; business parameter data includes process approval data, process routing parameters, business field translation and parsing data, business relationship data, and business logic processing and judgment data. In addition, during the system construction life cycle, system developers and post-maintenance personnel are only familiar with the microservices they are responsible for, and pay less attention to other independently deployed microservices, which directly increases the inconsistency and inoperability of generating data dictionaries and field parsing.

[0004] Therefore, how to avoid inconsistencies in data dictionaries and field parsing generated by the interaction between independently deployed microservices, and at the same time reduce the difficulty of dictionary and field parsing for R&D personnel to call different services, so as to make microservice-based dictionary and field parsing operational and simplify the use of dictionaries and fields based on microservices has become an urgent problem to be solved. Summary of the invention

[0005] In view of this, the present invention provides a method and device for parsing dictionaries and fields based on microservices to solve the problems of inconsistent dictionary and field parsing, high operational difficulty, and low R&D efficiency in existing microservice technologies. The technical solution is as follows:

[0006] A microservice-based dictionary and field parsing method, including:

[0007] Get the data dictionary and field format definition information;

[0008] Based on the format definition information of the data dictionary and the field, obtain the microservice interface information and interface input and output parameter definition information of the format definition of the data dictionary and the field and the corresponding relationship between each attribute of the data object;

[0009] Add the information described in the microservice interface data, interface input and output parameters, and attribute correspondence of the data object to the annotation parser to form a data dictionary and field parsing definition of the definition information;

[0010] A data dictionary is generated according to the format definition information of the data dictionary and the field and the parsing definition information of the data dictionary and the field.

[0011] Preferably, based on the format definition information of the data dictionary and the field, the microservice interface information and the interface input and output parameter definition information of the format definition of the data dictionary and the field are obtained, and the relationship between each attribute of the data object and the corresponding data object of the data dictionary and the format definition information of the field is generated respectively, specifically including:

[0012] Obtain the information of each microservice interface, the input parameter information of each interface, the output parameter information of each interface, and the relationship between each microservice interface and each attribute of each data object in the XML format data dictionary and field definition information file;

[0013] According to the format data dictionary and the field definition information file, the information of each microservice interface, the input parameter information of each interface, and the output parameter information of each interface are obtained to define the data request format rules of each microservice interface.

[0014] According to the format data dictionary and the field definition information file, obtain the information of each microservice interface, the input parameter information of each interface, the output parameter information of each interface, the corresponding relationship between each microservice interface and the attributes of each data object, the data request format rules of each microservice interface, and the format data defining the attributes of each interface data object.

[0015] Preferably, the information described in the attribute correspondence relationship of the microservice interface data, interface input and output parameters, and data objects is added to the annotation parser to form a data dictionary and field parsing definition of the definition information, specifically including:

[0016] Set the alias of the microservice interface information definition, set the microservice interface input parameter parsing definition, and the microservice output parameter parsing definition. Integrate the alias of the microservice interface information definition with the microservice interface definition, interface request method, interface input parameter, and output parameter definitions to generate annotation parsing definition information for the corresponding data object.

[0017] Preferably, the integration of the microservice interface name, interface input parameters, interface output parameters and fields of the data object to generate the interface data dictionary and the parsing definition of the fields specifically includes:

[0018] Define incoming request parameters according to the microservice interface definition and input parameters;

[0019] Define and parse the returned data according to the microservice interface definition and output parameters.

[0020] Preferably, the step of adding the information described in the corresponding relationship between the microservice interface data, the interface input and output parameters, and the attributes of the data object to the step of generating the annotation parsing definition information of the corresponding data object in the annotation parser specifically includes:

[0021] Set the alias of the microservice interface information definition parsed in the annotation, and set the mapping relationship between the interface output parameter assignment fields;

[0022] The microservice interface request is implemented in the annotation implementation according to the microservice interface information defined in the format of obtaining the data dictionary and the field and the corresponding relationship between the interface input and output parameter definition information and the attributes of the data object.

[0023] Preferably, the step of obtaining the microservice interface information and interface input and output parameter definition information of the data dictionary and field format definition and the relationship fields corresponding to the attributes of the data object and parsing the returned data specifically includes:

[0024] Generate data dictionary format data of corresponding data objects in sequence according to multiple different parameters defined by microservice interface and output parameter;

[0025] The cache processing unit is used to add the microservice interface definition information and the interface input parameters and the dictionary format data of the data object to form a cache data specification definition including the data dictionary and fields of all microservice interface information and data objects.

[0026] Preferably, the parsing definition of the dictionary and fields of the microservice includes: microservice interface, interface method, interface input parameter, interface output parameter; and the parsing relationship of the dictionary and fields of the microservice includes: the relationship between the microservice interface and the microservice interface parameters, the relationship between the microservice interface and the data object and the cache processing unit, the relationship between the interface output parameter parsing return data and the annotation parsing data object, and the relationship between the microservice interface definition and the annotation parsing implementation.

[0027] Another aspect of the present invention further provides a microservice-based dictionary and field parsing device, comprising:

[0028] XML parsing module, used to obtain dictionary and field definition identification information;

[0029] A dictionary and field microservice request module, used to obtain interface output parameters with the data object in the microservice-based dictionary and field parsing method based on the dictionary and field definition identification information;

[0030] The dictionary and field parsing generation module is used to integrate the dictionary and field definition information, microservice interface output parameters, dictionary and field annotation parser definitions to generate a data dictionary of the microservice interface data object field and save it to the cache processing unit.

[0031] Through the technical solution of the present invention, by using XML-cleared data structure definitions to configure and generate a data dictionary, and storing data objects in a cache processing unit, it is avoided that a single microservice generates a data dictionary independently, and the dictionary generation methods and processes under different microservices are standardized, so that the dictionary and field parsing generation under the microservice is operational and the complexity of dictionary data generation under the microservice is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 This is a schematic diagram of a process for generating dictionary XML information based on microservices provided by an embodiment of the present invention;

[0034] Figure 2 It is a flowchart of a dictionary and field parsing method based on microservices provided by an embodiment of the present invention;

[0035] Figure 3 It is a schematic diagram of a method for generating dictionary and field interface data based on a microservice provided by an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of a dictionary and field implementation method based on microservices provided by an embodiment of the present invention;

[0037] Figure 5 It is a schematic diagram of a dictionary and field annotation implementation device based on microservices provided by an embodiment of the present invention;

[0038] Figure 6 It is a schematic diagram of a structural device of a dictionary and field parsing based on a microservice provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] First, several terms involved in the present invention are explained.

[0041] Microservice: A software development technology - a variation of the service-oriented architecture (SOA) architectural style, which advocates dividing a single application into a group of small services, which coordinate and cooperate with each other to provide the most value to users. Each service runs in its own independent process, and services communicate with each other using lightweight communication mechanisms (usually HTTP-based RESTful API). Each service is built around a specific business and can be independently deployed to a production environment, a production-like environment, etc. In addition, a unified and centralized service management mechanism should be avoided as much as possible. For a specific service, the appropriate language and tools should be selected according to the context to build it.

[0042] The data dictionary is a data set that takes the data items (data elements, the basic unit of data is the smallest unit that cannot be divided) in the database, sorts them in a certain order, and gives a detailed description of their contents. The data dictionary stores the definition of all data in the system, that is, the description of all database organizations. It is a shared warehouse that defines the meaning, type, data size, format, measurement unit, precision, and allowed aggregate value range of all data elements and organizations used in the database. The data dictionary is expressed as a table in the database.

[0043] Field: In a database, most of the time, the "columns" of a table are called "fields", and each field contains information about a certain topic. For example, in the "address book" database, "name" and "contact number" are attributes common to all rows in the table, so these columns are called "name" fields and "contact number" fields.

[0044] Data Object: Any data structure element referenced in an application, such as files, data, variables, etc. is called a data object, or object for short. It is named using characters allowed by the programming language. A data object is a composite information representation that must be understood by the software. A data object may be an external entity, thing, incident or event, role, organizational unit, place or structure, etc. For example, a person or a car can be considered a data object in the sense that they can be defined by a set of attributes. A data object description includes the data object and all its attributes. A data object only encapsulates data (no operations on the data).

[0045] In the following description, many specific details are set forth for a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0046] Figure 1 A schematic diagram of a process for generating dictionary XML information based on microservices according to the present invention is shown.

[0047] like Figure 1 As shown, the dictionary and field parsing method based on microservices according to an embodiment of the present invention specifically includes:

[0048] Step 101, determine the format definition information of the dictionary and the field in XML, and obtain the microservice interface information, interface input parameter and interface output parameter definition information corresponding to the data dictionary and field definition.

[0049] Step 102, obtain annotation information in the dictionary and field annotation implementation, and obtain the microservice interface data, interface input and output parameters and the attribute correspondence of the data object in the annotation implementation and add it to the annotation parser.

[0050] Step 103: Generate a data dictionary for the data object by using the format definition information of the data dictionary and the field and the microservice request parameter parsing information of the data dictionary and the field.

[0051] In this technical solution, since the microservice modules that the R&D personnel and maintenance personnel involved in the system development and delivery process are responsible for are independent of each other and each microservice module is also independently deployed, a data dictionary is generated by multiple data dictionaries and field format data and data objects based on multiple interfaces in the microservice. This not only makes it convenient for the personnel involved in the development to generate dictionaries and field parsing more quickly through XML configuration and interface data definition, but also unifies the data dictionaries generated by dictionaries and fields under different microservices, avoiding data duplication while also avoiding repeated development.

[0052] In the above technical solution, preferably, step 101 specifically includes: defining a microservice interface group tag in XML and defining a single microservice interface tag; defining a single microservice interface alias with microservice interface information, interface input parameter and interface output parameter information; defining microservice interface request rules for the dictionary and fields according to the microservice group and each microservice interface attribute information and the relationship between the microservice and the data dictionary and fields; generating dictionary format data of the multiple dictionaries and fields according to the microservice interface request rules for the dictionary and fields of each microservice interface in the multiple microservice interfaces.

[0053] In the technical solution, preferably, the step of obtaining annotation information in the dictionary and field annotation implementation, and obtaining the attribute correspondence between microservice interface data, interface input and output parameters, and data objects in the annotation implementation and adding them to the annotation parser specifically includes: setting the dictionary definition label of the microservice interface group, and setting each microservice interface dictionary definition sub-label; wherein the microservice interface definition information includes the microservice interface name (including the package path), the microservice interface alias (dictionary name), the interface method name, the input parameter type, the input parameter name, the output parameter name, etc. The dictionary and field parsing definition format rules of the microservice include the relationship between the microservice definition information and the data object, and the annotation format data of the dictionary data object.

[0054] For example, the definition of the XML format microservice dictionary and field parsing is as follows:

[0055]

[0056]

[0057] Record the microservice interface information of the dictionary and fields in XML <dict>In the metadata node, name records the alias, dictionary name, or field name of the microservice interface.

[0058] In XML <beanclass>The metadata node records the microservice interface name, which is the full name including the package path. The microservice interface will be requested in the dictionary and field annotation implementation of the microservice.

[0059] In XML <methodname>The metadata node records the method name of the microservice request. This method name is the specific method implementation of the parsing request for the microservice dictionary and field to generate the data object.

[0060] In XML <keyparam>The metadata node records the input parameter type of the microservice method. Multiple parameters are separated by English commas.

[0061] In XML <valueparam>The metadata node records the output parameter name of the microservice method. Figure 2 A schematic flow chart of a microservice-based dictionary and field parsing method according to the present invention is shown.

[0062] like Figure 2 As shown, a dictionary and field parsing method and process based on microservices according to the present invention includes:

[0063] Step 201, in the actual application of XML parsing implementation, obtain the microservice interface information, microservice interface input parameter information, and microservice interface output parameter information in the XML definition information. The parsing of the format definition information of the determined dictionary and field in XML is realized by setting the subset relationship between the microservice dictionary group and each microservice dictionary.

[0064] Step 202, as described in the relationship between the microservice interface definition information parsing request, the interface alias and the data dictionary, in the XML parsing process, the relationship between the microservice interface alias and the microservice interface definition information is parsed, and the microservice interface alias is used as the dictionary of the microservice and the data dictionary of the field parsing to generate the data request basis to generate the data dictionary microservice interface request definition.

[0065] Step 203, as described in the microservice interface outgoing parameter parsing and data object mapping relationship, the microservice interface request return result is parsed according to the XML microservice interface definition information, and data dictionary format data is generated through the parsing results of the outgoing parameter name value dictionary and the field.

[0066] Step 204, generate a data dictionary format data object. According to step 203, the data dictionary format data is generated by parsing the parameter name value dictionary and the field. The dictionary format data of the dictionary and the field is converted into a dictionary format data object through the data type and stored in the microservice cache processing unit.

[0067] Figure 3 , showing a schematic diagram of a method for generating dictionary and field interface data based on microservices according to the present invention.

[0068] like Figure 3 As shown, the present invention provides a method for generating dictionary and field interface data based on microservices, including:

[0069] Step 301, XML data dictionary defines data.

[0070] Step 302, obtain the microservice interface definition information of the XML data dictionary, and parse the relationship between the microservice interface alias and the data dictionary and fields.

[0071] Step 303, according to the relationship between the microservice interface alias and the data dictionary and field described in step 302, call the data dictionary microservice interface alias corresponding to the data dictionary and field in the microservice data dictionary and field annotation parser to obtain the microservice interface definition information, initiate a microservice request through the microservice interface information, interface method information, interface input parameter information, and interface output parameter information in the microservice interface definition information, and generate data dictionary format data based on the result data returned by the microservice interface request.

[0072] Step 304: Generate a dictionary format data object. The dictionary format data of the dictionary and field is converted into a dictionary format data object through data type conversion and stored in the microservice cache processing unit.

[0073] Figure 4 , showing a schematic diagram of a dictionary and field implementation method based on microservices according to the present invention;

[0074] like Figure 4 As shown, a dictionary and field implementation method based on microservices according to the present invention includes:

[0075] Step 410, XML data loading, is used to load the file of the microservice interface definition information of the XML data dictionary and the field into the application memory through the IO data stream.

[0076] Step 420, XML reading and parsing, according to the XML data dictionary and field microservice interface definition information file, obtain each microservice interface definition information in the microservice interfaces of multiple data dictionaries and fields and the relationship between the microservice interface aliases of the multiple dictionaries and fields and the specific definition information of the interface, and generate microservice request format data corresponding to the microservice interfaces of the multiple data dictionaries and fields;

[0077] Step 430, the loop reading unit loops through the microservice parsing interface definition of each dictionary and field according to the microservice interface definition information of the XML data dictionary and field, including:

[0078] A microservice definition parsing 431 is used to generate format data corresponding to each dictionary and field microservice interface request according to the microservice interface alias and the data dictionary microservice interface microservice definition information of the data dictionary and field; reading information 432 is used to read the microservice interface information, interface method information, interface input parameter information, and interface output parameter information of the dictionary and field microservice interface definition to form all microservice interface request format definition data including the interface alias; dictionary / field definition 433 is used to define and initialize the data object of the microservice request in the application in a programmatic manner according to the microservice interface metadata tag definition information of the XML data dictionary and field; adding microservice data items 434 is used to add the data object of the microservice request of the dictionary and field to the dictionary and field parsing microservice request data item collection with the alias of each microservice as the key and the data object of the microservice request as the value.

[0079] Figure 5 , showing a schematic diagram of a dictionary and field annotation implementation device based on microservices according to the present invention.

[0080] like Figure 5 As shown, a dictionary and field annotation implementation method based on microservices according to the present invention includes:

[0081] Configuration unit 510, annotation definition 511 is used to define the annotation definition and attribute information of the dictionary and field parsing configuration, the annotation definition and attribute information include dictionary name, dictionary type, dictionary content format, which are used to unify the call format definition between multiple independent microservices in the application; annotation acquisition 512 is used to obtain the dictionary name (i.e., microservice interface alias), dictionary type, and dictionary content format passed in by the program during the annotation call parsing process; microservice processing unit 520, configuration acquisition 521 is used to obtain the specific content of the basic parameters and attributes of the microservice configuration in the application, microservice request 522, which is used to obtain the specific dictionary name (i.e., microservice interface alias), dictionary type, and specific content of the dictionary content format attribute passed in by the specific application of the annotation configuration and annotation in different microservice scenarios, initiate a microservice request and obtain the requested dictionary and field parsing result data dictionary format definition data; dictionary / field cache processing unit 530 is used for the dictionary format data object. According to the dictionary format data of the dictionary and field, the dictionary format data object is converted into a dictionary format data object through the data type and stored in the microservice cache processing unit.

[0082] In the above technical solution, preferably, the configuration unit 510 includes: annotation definition 511, which is used to unify the dictionary and field parsing call formats of different microservices in the application; annotation acquisition 512 is used to provide a unified annotation acquisition implementation for dictionary and field parsing calls of different microservices in the application; microservice processing unit 520, configuration acquisition 521, which is used to obtain the configuration parameters and attribute information of the microservice by initiating a microservice request; microservice request 522, which is used to dynamically initiate a microservice request to obtain the dictionary and field microservice interface corresponding results to parse the parameter parameters to generate dictionary format data.

[0083] In this technical solution, the relationship between the dictionary name passed in is implemented according to the microservice interface definition information of the XML data dictionary and the annotation parsing of the dictionary and the field, and the annotation parsing of each dictionary and field is defined to define the parsing rules with the data dictionary format defined by the microservice. Therefore, in multiple independent microservice modules in the application and in different scenarios of each microservice module, the dictionary and field parsing can generate data in the data dictionary format of each dictionary and field, making full use of the independent structure of microservices and the standard definition characteristics of XML, avoiding the independent generation of data dictionaries by a single microservice, and standardizing the dictionary generation methods and processes under different microservices.

[0084] In the above technical solution, preferably, the configuration unit 510 is specifically used to: configure the annotation definition to a specific business scenario according to multiple independent microservice modules in the application, different scenario dictionaries and field parsing of each microservice module, and generate a data dictionary for the dictionary and field according to the dictionary name (i.e., microservice interface alias), dictionary type, and dictionary content format attributes in the configuration attributes of the specific business scenario.

[0085] In this technical solution, annotation definitions include but are not limited to: annotation classes, annotation class implementations, and dynamic request microservices, wherein the attribute information of the annotation class includes: dictionary name, dictionary and field types, dictionary content format, etc., the attributes of the annotation class implementation include annotation information acquisition, microservice parameter acquisition, application parameter acquisition, dynamic request services, etc., dynamic request microservices include microservice addresses, microservice versions, microservice classes, microservice methods, microservice method parameters, microservice return values, etc., in addition, microservice processing units include but are not limited to http requests and restful requests, wherein requests between microservices mostly consider loose coupling of module relationships, and dynamic requests of microservice processing units are implemented by requesting microservice registration centers to call requests.

[0086] Figure 6 , showing a schematic diagram of a structural device based on a dictionary and field parsing of a microservice according to the present invention;

[0087] like Figure 6 As shown, a structural device for dictionary and field parsing based on microservices according to the present invention includes an XML acquisition device 601, an annotation acquisition device 602, and a dictionary / field generation device 603.

[0088] XML acquisition means 601, used to implement microservice interface definition information from XML data dictionary, according to the interface attribute definition of each microservice, using the microservice interface alias as

[0089] key obtains microservice request format data from the microservice interface definition data set.

[0090] Annotation acquisition means 602 is used to obtain annotation configuration from the microservice module, the different scenario dictionaries of each microservice module and the annotations of the field parsing configuration, the dictionary

[0091] Name (i.e. microservice interface alias), dictionary type, dictionary content format attributes, to form annotation definition data for microservice specific business scenario dictionary and field parsing.

[0092] The dictionary / field generating means 603 is used to generate data in a data dictionary format according to the microservice interface definition information of the XML data dictionary and the annotation definition information of the dictionary and the field.

[0093] The above describes in detail the technical solution of the present invention in conjunction with the accompanying drawings. By utilizing the microservice interface definition of the XML data dictionary and the characteristics of dynamic request parsing of the data dictionary annotation, a data dictionary for complex business scenarios under microservices is generated, thereby avoiding the independent generation of a data dictionary by a single microservice and standardizing the dictionary generation methods and processes under different microservices, thereby making the dictionary and field parsing generation under the microservice operational and reducing the complexity of dictionary data generation under the microservice.

[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.< / valueparam> < / keyparam> < / methodname> < / beanclass> < / dict>

Claims

1. A method for parsing dictionaries and fields based on microservices, characterized in that: include: Get the data dictionary and field format definition information; Based on the format definition information of the data dictionary and the field, obtain the microservice interface information and interface input and output parameter definition information of the format definition of the data dictionary and the field and the corresponding relationship between each attribute of the data object; Add the information described in the microservice interface data, interface input and output parameters, and attribute correspondence of the data object to the annotation parser to form a data dictionary and field parsing definition of the definition information; A data dictionary is generated according to the format definition information of the data dictionary and the field and the data dictionary and the field parsing definition information.

2. A microservice-based dictionary and field parsing method according to claim 1, characterized in that: Based on the format definition information of the data dictionary and the field, the microservice interface information and the interface input and output parameter definition information of the format definition of the data dictionary and the field are obtained, and the relationship between each attribute of the data object is obtained, and the data objects corresponding to the data dictionary and the format definition information of the field of the interface are generated respectively, specifically including: Obtain the information of each microservice interface, the input parameter information of each interface, the output parameter information of each interface, and the relationship between each microservice interface and each attribute of each data object in the XML format data dictionary and field definition information file; Obtain the information of each microservice interface, the input parameter information of each interface, and the output parameter information of each interface according to the format data dictionary and the field definition information file, and define the data request format rules of each microservice interface; According to the format data dictionary and the field definition information file, obtain the information of each microservice interface, the input parameter information of each interface, the output parameter information of each interface, the corresponding relationship between each microservice interface and the attributes of each data object, the data request format rules of each microservice interface, and the format data defining the attributes of each interface data object.

3. According to a microservice-based dictionary and field parsing method according to claim 1, it is characterized in that: The information described in the microservice interface data, interface input and output parameters, and attribute correspondence of data objects is added to the annotation parser to form a data dictionary and field parsing definition of the definition information, specifically including: Set the alias of the microservice interface information definition, set the microservice interface input parameter parsing definition, and the microservice output parameter parsing definition. Integrate the alias of the microservice interface information definition with the microservice interface definition, interface request method, interface input parameter, and output parameter definitions to generate annotation parsing definition information for the corresponding data object.

4. According to a microservice-based dictionary and field parsing method according to claim 1, it is characterized in that: Integrate the microservice interface name, interface input parameters, interface output parameters, and data object fields to generate the interface data dictionary and field parsing definition, including: Define incoming request parameters according to the microservice interface definition and input parameters; Define and parse the returned data according to the microservice interface definition and output parameters.

5. According to a microservice-based dictionary and field parsing method according to claim 3, it is characterized in that: The step of adding the information described in the corresponding relationship between the microservice interface data, the interface input and output parameters, and the data object's attributes to the annotation parser to generate the annotation parsing definition information of the corresponding data object specifically includes: Set the alias of the microservice interface information definition parsed in the annotation, and set the mapping relationship between the interface output parameter assignment fields; The microservice interface request is implemented in the annotation implementation according to the microservice interface information defined in the format of obtaining the data dictionary and the field and the corresponding relationship between the interface input and output parameter definition information and the attributes of the data object.

6. A microservice-based dictionary and field parsing method according to claim 4, characterized in that: The step of obtaining the microservice interface information and interface input and output parameter definition information of the data dictionary and field format definition and the relationship fields corresponding to the attributes of the data object and parsing the returned data specifically includes: Generate data dictionary format data of corresponding data objects in sequence according to multiple different parameters defined by microservice interface and output parameter; The cache processing unit is used to add the microservice interface definition information and the interface input parameters and the dictionary format data of the data object to form a cache data specification definition including the data dictionary and fields of all microservice interface information and data objects.

7. A microservice-based dictionary and field parsing method according to any one of claims 4 to 6, characterized in that: The parsing definition of the dictionary and fields of the microservice includes: microservice interface, interface method, interface input parameter, interface output parameter; and the parsing relationship between the dictionary and fields of the microservice includes: the relationship between the microservice interface and the microservice interface parameters, the relationship between the microservice interface and the data object and the cache processing unit, the relationship between the interface output parameter parsing return data and the annotation parsing data object, and the relationship between the microservice interface definition and the annotation parsing implementation.

8. A dictionary and field parsing device based on microservices, characterized in that: include: XML parsing module, used to obtain dictionary and field definition identification information; A dictionary and field microservice request module, used to obtain interface output parameters with the data object in the microservice-based dictionary and field parsing method based on the dictionary and field definition identification information; The dictionary and field parsing generation module is used to integrate the dictionary and field definition information, microservice interface output parameters, dictionary and field annotation parser definitions to generate a data dictionary of the microservice interface data object field and save it to the cache processing unit.