Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

AOP-based dictionary translation implementation method and system, electronic equipment and storage medium

An implementation method and dictionary technology, which is applied in the field of computer Java back-end development, can solve problems such as cumbersome calls to data dictionary interfaces, and achieve the effects of solving concurrency pressure, reducing workload, and reducing cumbersome calls

Pending Publication Date: 2022-02-08
济南浪潮智投智能科技有限公司
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to provide an AOP-based dictionary translation implementation method, system, electronic equipment and storage medium to solve the problem of cumbersome calls to data dictionary interfaces

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
  • AOP-based dictionary translation implementation method and system, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] The AOP-based dictionary translation implementation method of the present invention uses Java annotations to use AOP aspect-oriented programming to horizontally expand the execution method; and then obtains the annotation attributes of the entity class to make multiple calling functions perform data processing in a unified manner. Formatting operation; in the process of calling the interface, directly return the data of the key value and value value of the proxy dictionary; the details are as follows:

[0064] S1. Create a custom dictionary annotation class, and assign the custom dictionary annotation to the corresponding returned entity class object;

[0065] S2, add dictionary AOP class;

[0066] S3. Request server interface data through the HTTP interface, call the data interface: initiate an HTTP request through the front end, call the interface in the background, and transfer business-related parameters to the interface, no special configuration is required;

[00...

Embodiment 2

[0102] The dictionary translation system based on AOP of the present invention, this system comprises,

[0103] Create a module to create a custom dictionary annotation class, and assign the custom dictionary annotation to the corresponding returned entity class object;

[0104] Add a module to add a dictionary AOP class through the @Aspect annotation, add @component to the class so that the class can be automatically injected into the program in the form of a bean, and add the @Pointcut annotation to define the cut point in the class method implementation and implementation methods;

[0105] The request module is used to initiate HTTP requests through the front end, call the backend interface, and pass business-related parameters to the interface without special configuration;

[0106] Cut into the module, used to obtain the life cycle of the target method through the proxy;

[0107] The execution module is used to execute the target method by controlling the life cycle, ob...

Embodiment 3

[0113] The embodiment of the present invention also provides an electronic device, including: a memory and a processor;

[0114] Wherein, the memory stores computer-executable instructions;

[0115]The processor executes the computer-executed instructions stored in the memory, so that the processor executes the AOP-based dictionary translation implementation method in any embodiment of the present invention.

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 discloses an AOP-based dictionary translation implementation method and system, electronic equipment and a storage medium, belongs to the technical field of computer Java back-end development, and aims to solve the technical problem of tedious calling of a data dictionary interface. According to the technical scheme, the method comprises steps of using AOP aspect-oriented programming in a Java annotation mode, transversely expanding the execution method; enabling a plurality of calling functions to perform data formatting operation in a unified manner by acquiring annotation attributes of the entity classes; and directly returning data of the key value and the value value of the substitute dictionary in an interface calling process. The system comprises a creation module, an addition module, a request module, an execution module, an acquisition module, a verification module, a translation module and a return module.

Description

technical field [0001] The invention relates to the technical field of computer Java back-end development, in particular to an AOP-based dictionary translation implementation method, system, electronic equipment and storage medium. Background technique [0002] With the development of Internet technology, various basic technology iterations are constantly updated, and the management and exchange of technical documents and data dictionary documents has become particularly important. At present, most of the common data dictionary management methods rely on traditional manual maintenance, and the corresponding program development mostly uses the traditional Java system framework. [0003] In the traditional Java system framework, when there is a demand for data dictionary development, it is often necessary to write the query interface related to the data dictionary, and the front desk needs to continuously call the query interface and parse the returned data. When there are ma...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/73G06F9/448
CPCG06F8/311G06F8/73G06F9/449
Inventor 孟皓冉李祥星于秀娟
Owner 济南浪潮智投智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products