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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com