Data verification method, device, electronic device and readable storage medium
By adding a data verification layer in the Spring MVC system, using section technology and JSR-303 standardized data verification, the problem of inconsistent data verification in the system is solved, and the effective checksum system stability of data interaction is achieved.
Patent Information
- Application Number
- CN202011276936.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-16
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2040-11-16
AI Technical Summary
Systems based on Spring MVC framework lack a unified key domain threshold range control mechanism, which causes data to fluctuate during the flow process, affecting data accuracy and normal system operation.
Use sectional technology to extract the target data in the data stream, and add a data verification layer in the Spring MVC system based on the pre-stored reference data. Through the data verification thread, check whether the target data meets the preset conditions. If it is not satisfied, adjust the data to meet the Preset conditions.
A centralized data verification mechanism based on JSR-303 specification is implemented to ensure effective verification of the data interaction interface, eliminate the generation of abnormal data, and ensure the normal operation of the system.
Smart Images

Figure CN112416916B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer information security, and in particular to a data verification method, device, electronic device and readable storage medium. Background Art
[0002] At present, the system based on Spring MVC framework has no mechanism to uniformly control the threshold range of key domains. The control of threshold verification is scattered in various places such as interface logic, database operation, business processing, etc., and cannot be effectively managed centrally. When such systems involve complex workflows, diverse operation combinations, and frequent changes in reporting data requirements, data will fluctuate significantly during the circulation process (multiple enlargement or reduction, etc.), affecting the accuracy of data in the system and downstream systems, causing abnormal system execution of business. Summary of the invention
[0003] The purpose of this application is to solve at least one of the above technical defects. The technical solution adopted by this application is as follows:
[0004] In a first aspect, an embodiment of the present application discloses a data verification method, which is applied to a smart terminal, and the method includes:
[0005] Extract target data from data stream based on aspect technology;
[0006] According to the pre-stored reference data, it is verified whether the target data meets the preset conditions.
[0007] Optionally, extracting target data from the data stream based on the aspect technology includes:
[0008] Identify key areas of the system where data flows;
[0009] Target data is extracted at the data interface of the key domain.
[0010] Optionally, the pre-stored benchmark data includes:
[0011] The key domain benchmark data is pre-stored based on the JSR-303 specification; wherein the benchmark data can receive custom configuration and detection.
[0012] Optionally, the checking whether the target data meets a preset condition includes:
[0013] Add a data validation layer to the Spring MVC system;
[0014] A data verification thread is executed in the data verification layer; wherein the data verification thread is used to verify whether the target data meets a preset condition.
[0015] Optionally, adding a data verification layer in the Spring MVC system includes:
[0016] Add a data verification layer between the control layer and the business logic layer; or,
[0017] Add a data verification layer in the business logic layer and data persistence layer.
[0018] Optionally, the method further comprises:
[0019] The verification data is stored, and a verification result is determined according to the verification data;
[0020] The verification result is fed back to the system front end.
[0021] Optionally, the method further comprises:
[0022] If the target data does not meet the preset condition after verification, the target data is adjusted to data meeting the preset condition according to the pre-stored reference data.
[0023] On the other hand, an embodiment of the present application provides a data verification device, which may include: an extraction module, a storage module and a verification module; wherein:
[0024] The extraction module is used to extract target data from the data stream based on the aspect technology;
[0025] The storage module is used to pre-store reference data;
[0026] The verification module is used to verify whether the target data meets the preset conditions according to the pre-stored reference data.
[0027] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
[0028] The memory is used to store operation instructions;
[0029] The processor is used to execute the method described in any of the above embodiments by calling the operation instruction.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0031] The data verification solution provided in the embodiment of the present application extracts the target data in the data stream based on the aspect technology; and verifies whether the target data meets the preset conditions according to the pre-stored benchmark data. The beneficial effect brought by the technical solution provided in the embodiment of the present application is that the system is developed based on the Spring MVC framework and a centralized verification mechanism for key thresholds is established based on the aspect mechanism, which is based on the JSR-303 verification specification. A new data verification layer is added to the system, and any data interaction interface that needs data verification can be configured to achieve effective verification. Moreover, the verification code is non-invasive and there is no need to modify the program source code. The possibility of abnormal data generation is eliminated from a technical level, ensuring the normal operation of the system. 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 describing the embodiments of the present application are briefly introduced below.
[0033] Figure 1 A schematic diagram of a data verification method provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of the structure of a data verification device provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.
[0037] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0038] In addition, it should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[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] The following introduces some concepts, terms or devices that may be involved in the following embodiments:
[0041] Spring MVC is a successor product of SpringFrameWork and has been integrated into Spring Web Flow. The Spring framework provides a full-featured MVC module for building Web applications. Using Spring's pluggable MVC architecture, you can choose to use Spring's Spring MVC framework or integrate other MVC development frameworks when using Spring for WEB development. Through the strategy interface, the Spring framework is highly configurable and includes a variety of view technologies, such as JavaServer Pages (JSP) technology, Velocity, Tiles, iText, and POI. The Spring MVC framework does not know the views used, so it does not force developers to use only JSP technology. Spring MVC separates the roles of controllers, model objects, filters, and handler objects, making them easier to customize.
[0042] AOP is the abbreviation of Aspect Oriented Programming, which refers to aspect-oriented technology. It is a technology that can dynamically and uniformly add functions to the program without modifying the source code through pre-compilation and runtime dynamic proxy. AOP is a continuation of OOP, a hot topic in software development, and an important content in the Spring framework. It is a derivative paradigm of functional programming. AOP can be used to isolate various parts of the business logic, thereby reducing the coupling between the various parts of the business logic, improving the reusability of the program, and improving the efficiency of development. AOP can extract and encapsulate the common functions involved in multiple business processes separately to form independent aspects, and cut these aspects horizontally into the specified positions of the business process at the right time.
[0043] JSR 303 is a sub-specification in JAVA EE 6, called Bean Validation. Bean Validation is a standardized JavaBean validation API defined by JCP (Java Community Process). It is based on annotations and has good usability and extensibility. It should be noted that Bean Validation is only a specification and standard, and no implementation is provided.
[0044] DAO (Data Access Object) is an application programming interface (API) that exists in Microsoft Visual Basic and allows programmers to request access to Microsoft Access databases. DAO is Microsoft's first object-oriented database interface. DAO objects enclose Access's Jet functions. Through Jet functions, it can also access other Structured Query Language (SQL) databases.
[0045] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0046] Figure 1 A schematic diagram of a data verification process provided by an embodiment of the present application is shown. Figure 1 As shown, the method may mainly include:
[0047] S101. Extract target data from the data stream based on the aspect technology;
[0048] In an optional embodiment of the present application, the extraction of target data in the data stream based on aspect technology includes: identifying the key domain of the system where the data stream is located; extracting the target data at the data interface of the key domain, and establishing a unified data type, length, maximum and minimum values within the system.
[0049] S102: Verify whether the target data meets preset conditions based on pre-stored benchmark data.
[0050] In an optional embodiment of the present application, the key domain benchmark data is pre-stored based on the JSR-303 specification; wherein the benchmark data can receive custom configuration and detection.
[0051] In an optional embodiment of the present application, the steps of verifying whether the target data meets the preset conditions are as follows:
[0052] Step 1: Add a data verification layer in the Spring MVC system;
[0053] A data verification layer can be added between the control layer and the business logic layer; or,
[0054] The data verification layer is added between the business logic layer and the data persistence layer;
[0055] Step 2: Execute a data verification thread at the data verification layer; wherein the data verification thread is used to verify whether the target data meets a preset condition;
[0056] Step 3: storing the verification data and determining the verification result according to the verification data;
[0057] Step 4-1: Feedback the verification result to the system front end. In the specific implementation process, a data verification failure table can be added to record data verification failure records. The data in the table can be monitored and the failure result can be fed back to the user.
[0058] In an optional embodiment of the present application, the method further includes:
[0059] Step 4-2: If the target data does not meet the preset conditions after verification, the target data is adjusted to data meeting the preset conditions according to the pre-stored reference data.
[0060] based on Figure 1 The data verification method shown in the figure, on the other hand, the embodiment of the present application provides a data verification device, which is applied to a smart terminal, such as Figure 2 As shown, the device may include an extraction module 201, a storage module 202 and a verification module 203; wherein,
[0061] The extraction module 201 is used to extract target data in the data stream based on the section technology;
[0062] The storage module 202 is used to pre-store reference data;
[0063] The verification module 203 is used to verify whether the target data meets the preset conditions according to the pre-stored reference data.
[0064] Optionally, the extraction module further comprises an identification unit and an extraction unit, wherein:
[0065] The identification unit is used to identify the key domain of the system where the data flow is located;
[0066] The extraction unit is used to extract target data at the data interface of the key domain.
[0067] The storage module is specifically used to pre-store the key domain benchmark data based on the JSR-303 specification; wherein the benchmark data can receive custom configuration and detection.
[0068] The method also includes that the device also includes a setting module, wherein the setting module is used to
[0069] Add a data verification layer in the Spring MVC system; add a data verification layer between the control layer and the business logic layer; or, add a data verification layer between the business logic layer and the data persistence layer.
[0070] A data verification thread is executed in the data verification layer; wherein the data verification thread is used to verify whether the target data meets a preset condition.
[0071] The storage module is also used to store the verification data, and determine the verification result according to the verification data; and feed back the verification result to the system front end.
[0072] The device further comprises an adjustment module, wherein the adjustment module is used for adjusting the target data to data satisfying the preset condition according to the pre-stored reference data if the target data does not satisfy the preset condition after verification.
[0073] It can be understood that the above-mentioned components of the data verification in this embodiment have the function of realizing Figure 1 The functions of the corresponding steps of the method in the embodiment shown in . The function can be implemented by hardware, or by hardware executing the corresponding software. The hardware or software includes one or more modules or devices corresponding to the above functions. The above modules and devices can be software and / or hardware, and the above modules and devices can be implemented separately or integrated with multiple modules and devices. For the functional description of the above modules and devices, please refer to Figure 1The corresponding description of the method in the embodiment shown in , therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
[0074] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the specific structure of the data verification device. In other embodiments of the present application, the data verification device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0075] An embodiment of the present application provides an electronic device, including a processor and a memory;
[0076] A memory, used for storing operation instructions;
[0077] The processor is used to execute the data verification method provided in any embodiment of the present application by calling an operation instruction.
[0078] As an example, Figure 3 A schematic diagram of the structure of an electronic device applicable to the embodiment of the present application is shown. Figure 3 As shown, the electronic device 2000 includes: a processor 2001 and a memory 2003. Among them, the processor 2001 and the memory 2003 are connected, such as being connected through a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that in actual applications, the transceiver 2004 is not limited to one. It is understandable that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the specific structure of the electronic device 2000. In other embodiments of the present application, the electronic device 2000 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. Optionally, the electronic device may also include a display screen 2005 for displaying images, or receiving user operation instructions when necessary.
[0079] The processor 2001 is applied in the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter. The transceiver 2004 is applied in the embodiment of the present application to implement the function of the electronic device of the embodiment of the present application communicating with other devices when executed.
[0080] Processor 2001 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 2001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0081] The processor 2001 may also include one or more processing units, for example: the processor 2001 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (Neural-network Processing Unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 2000. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. A memory can also be set in the processor 2001 for storing instructions and data. In some embodiments, the memory in the processor 2001 is a high-speed cache memory. The memory can save instructions or data that the processor 2001 has just used or circulated. If the processor 2001 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 2001 is reduced, and the efficiency of the system is improved.
[0082] The processor 2001 can run the data verification method provided in the embodiment of the present application to reduce the user's operation complexity, improve the intelligence of the terminal device, and enhance the user experience. The processor 2001 can include different devices. For example, when the CPU and GPU are integrated, the CPU and GPU can cooperate to execute the data verification method provided in the embodiment of the present application. For example, part of the algorithm in the data verification method is executed by the CPU, and the other part of the algorithm is executed by the GPU to obtain faster processing efficiency.
[0083] The bus 2002 may include a path to transmit information between the above components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 2002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0084] The memory 2003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or may include a high-speed random access memory, or may include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0085] Optionally, the memory 2003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 2001. The processor 2001 is used to execute the application code stored in the memory 2003 to implement the data verification method provided in any embodiment of the present application.
[0086] The memory 2003 can be used to store computer executable program codes, which include instructions. The processor 2001 executes various functional applications and data processing of the electronic device 2000 by running the instructions stored in the memory 2003. The memory 2003 may include a program storage area and a data storage area. Among them, the program storage area can store the code of the operating system, application program, etc. The data storage area can store data created during the use of the electronic device 2000 (such as images, videos, etc. collected by the camera application), etc.
[0087] The memory 2003 may also store one or more computer programs corresponding to the data verification method provided in the embodiment of the present application. The one or more computer programs are stored in the above-mentioned memory 2003 and are configured to be executed by the one or more processors 2001. The one or more computer programs include instructions, and the above-mentioned instructions can be used to execute each step in the above-mentioned corresponding embodiment.
[0088] Of course, the code of the data verification method provided in the embodiment of the present application can also be stored in an external memory. In this case, the processor 2001 can run the code of the data verification method stored in the external memory through the external memory interface, and the processor 2001 can control the running data verification process.
[0089] The display screen 2005 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 2000 may include 1 or N display screens 2005, where N is a positive integer greater than 1. The display screen 2005 can be used to display information input by a user or information provided to a user and various graphical user interfaces (GUI). For example, the display screen 2005 can display photos, videos, web pages, or files, etc.
[0090] The electronic device provided in the embodiment of the present application is applicable to any embodiment of the above method. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.
[0091] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the data verification method shown in the above method embodiment is implemented.
[0092] The computer-readable storage medium provided in the embodiment of the present application is applicable to any embodiment of the above-mentioned method. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.
[0093] The embodiment of the present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment. The computer program product provided in the embodiment of the present application is applicable to any embodiment of the above-mentioned method, and therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.
[0094] The data verification scheme provided in the embodiment of the present application, through the data verification scheme provided in the embodiment of the present application, extracts the target data in the data stream based on the aspect technology; verifies whether the target data meets the preset conditions according to the pre-stored benchmark data. The technical solution provided in the embodiment of the present application is a system developed based on the Spring MVC framework and establishes a centralized verification mechanism for key thresholds based on the JSR-303 verification specification according to the aspect mechanism. A new data verification layer is added to the system, and any data interaction interface that needs data verification can be configured to achieve effective verification. Moreover, the verification code is non-invasive and there is no need to modify the program source code. The possibility of abnormal data generation is eliminated from a technical level, ensuring the normal operation of the system.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be discarded or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0099] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0100] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, and can also make some improvements and modifications. These changes, substitutions, improvements and modifications should also be considered to be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data verification method, which is applied to an intelligent terminal, characterized in that: The method comprises: Extract target data from data stream based on aspect technology; Verifying whether the target data meets the preset conditions according to the pre-stored benchmark data; The target data extracted from the data stream based on the aspect technology includes: Identify key areas of the system where data flows; Extracting target data at the data interface of the key domain; Pre-stored benchmark data includes: Pre-storing the key domain benchmark data based on the JSR-303 specification; wherein the benchmark data can receive custom configuration and detection; The checking whether the target data meets the preset conditions includes: Add a data validation layer to the Spring MVC system; A data verification thread is executed in the data verification layer; wherein the data verification thread is used to verify whether the target data meets a preset condition.
2. The data verification method according to claim 1, characterized in that: The data verification layer added in the Spring MVC system includes: Add a data verification layer between the control layer and the business logic layer; or, Add a data verification layer in the business logic layer and data persistence layer.
3. The data verification method according to claim 2, characterized in that: The method further comprises: The verification data is stored, and a verification result is determined according to the verification data; The verification result is fed back to the system front end.
4. The data verification method according to claim 3, characterized in that: The method further comprises: If the target data does not meet the preset condition after verification, the target data is adjusted to data meeting the preset condition according to the pre-stored reference data.
5. A data verification device, applied to a smart terminal, characterized in that: The device comprises: an extraction module, a storage module and a verification module; wherein, The extraction module is used to extract target data from the data stream based on the aspect technology; The storage module is used to pre-store reference data; The verification module is used to verify whether the target data meets the preset conditions according to the pre-stored reference data; The extraction module further includes a recognition unit and an extraction unit, wherein: The identification unit is used to identify the key domain of the system where the data flow is located; The extraction unit is used to extract target data at the data interface of the key domain; The storage module is specifically used to pre-store the key domain benchmark data based on the JSR-303 specification; wherein the benchmark data can receive custom configuration and detection; Also includes a setting module, wherein the setting module is used to add a data verification layer in the Spring MVC system; A data verification thread is executed in the data verification layer; wherein the data verification thread is used to verify whether the target data meets a preset condition.
6. An electronic device, characterized in that: including a processor and a memory; The memory is used to store operation instructions; The processor is used to execute the method according to any one of claims 1 to 4 by calling the operation instruction.
7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Data verification method and device
CN111796864A