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

A method and a device for realizing data verification and injection based on Java annotations

A data verification and annotation technology, applied in the computer field, can solve the problems of troublesome data injection process, troublesome verification process, poor versatility, etc., and achieve the effect of solving troublesome verification steps, good practicability and high reusability

Inactive Publication Date: 2019-04-19
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When performing data verification in the prior art, most of the related javabean objects and the properties of the javabean objects are judged one by one before generating xml. When the data verification object has many attribute fields, the verification process is very troublesome and has poor versatility
[0004] When performing data injection in the prior art, each field in the data needs to generate a javabean object, obtain attribute information by calling a third-party interface or database, and then inject the attribute information through get and set. The data injection process Very troublesome, can not be reused, poor scalability

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
  • A method and a device for realizing data verification and injection based on Java annotations
  • A method and a device for realizing data verification and injection based on Java annotations
  • A method and a device for realizing data verification and injection based on Java annotations

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0085] The various features disclosed in the specification can be used in any and all combinations without departing from the inventive concept of the present invention.

[0086] figure 1 is a schematic diagram of the main flow of a method for implementing data verification based on Java annotations according to an embodiment of the present invention, such as figure 1 sh...

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 a method and a device for realizing data verification and injection based on Java annotations, and relates to the technical field of computers. A specific embodiment of the method comprises the steps that the method for achieving data verification based on the Java annotation comprises the steps: determining a verification label based on the Java annotation according to aninterface standard, wherein the interface standard comprises a plurality of constraints; Adding the verification label into a source file to generate a to-be-verified file; And adopting the verifier to operate the to-be-verified file to realize verification of the source file. According to the embodiment, the data verification step can be greatly simplified, the configurability of data verification is realized, the reusability is high, and the universality is good.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and a device for realizing data verification and injection based on Java annotations. Background technique [0002] In the process of data transmission, in order to ensure that the transmitted data can meet the interface specification of the data receiver, it is often necessary to verify the data, such as syntax check and semantic check. [0003] In the prior art, when performing data verification, most of the relevant javabean objects and attributes of the javabean objects are judged one by one before generating xml. When the data verification object has many attribute fields, the verification process is very troublesome and has poor versatility. [0004] When performing data injection in the prior art, each field in the data needs to generate a javabean object, obtain attribute information by calling a third-party interface or database, and then inject the attribute ...

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): G06F11/10
CPCG06F11/10
Inventor 徐国英
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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