A database reading and writing separation method and device
A technology of read-write separation and database, applied in the field of database read-write, can solve the problems of long development cycle, slow application process, inflexible application system development, etc., and achieve the effect of shortening the development cycle and enhancing flexibility.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0027] A kind of database read-write separation method provided by the present invention, such as figure 1 As shown, the method includes:
[0028] Step 11: Intercept and parse the business request to determine whether there is an annotation part in the business request;
[0029] Specifically, this step is: in the actual application, first load the application environment, then add the required data package in the application environment, and open AOP (Aspect Oriented Programming) in the Spring (one of the application framework) files. function;
[0030] Described AOP intercepts all business requests, and utilizes the GetAnnotation (GetAnnotation) function to judge whether there are annotation parts in the current business request one by one; When the return value of the GetAnnotation is non-empty, it indicates that there are annotation parts in the current business request , then proceed to step 12; when the return value of the GetAnnotation is empty, it indicates that there...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


