WO2019127864A1 - Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium - Google Patents

Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium Download PDF

Info

Publication number
WO2019127864A1
WO2019127864A1 PCT/CN2018/076109 CN2018076109W WO2019127864A1 WO 2019127864 A1 WO2019127864 A1 WO 2019127864A1 CN 2018076109 W CN2018076109 W CN 2018076109W WO 2019127864 A1 WO2019127864 A1 WO 2019127864A1
Authority
WO
WIPO (PCT)
Prior art keywords
annotation
springmvc
data interface
controller
preset type
Prior art date
Application number
PCT/CN2018/076109
Other languages
French (fr)
Chinese (zh)
Inventor
池红露
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019127864A1 publication Critical patent/WO2019127864A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present invention relates to the field of application development, and in particular, to an electronic device, a springmvc-based data interface, an automatic generation method thereof, and a storage medium.
  • the interface description document corresponding to the manual configuration needs to be manually added in the process of registering the data interface to the interface management platform (for example, an interface needs to be written on the interface management platform).
  • the corresponding document description, or the pre-programmed interface document description is imported into the management platform and saved), which is not only inefficient and error-prone, but also has a time delay in updating the stored procedure of the document, resulting in delay in readability of the data interface.
  • the present invention provides an electronic device, a springmvc-based data interface, an automatic generation method thereof, and a storage medium, which realizes programming of a document corresponding to a data interface, and improves the uploading of the data interface to the interface management platform. Efficiency and accuracy, and improved readability of the data interface.
  • a first aspect of the present application provides an electronic device, where the electronic device includes a memory and a processor connected to the memory, where the processor is configured to execute a springmvc based storage stored on the memory.
  • the data interface and its description automatically generate a program, and the springmvc-based data interface and the description automatic generation program are executed by the processor to implement the following steps:
  • A1 Establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of the preset type network protocol based on the springmvc technology framework, where the service function is defined as Controller of springmvc technology framework;
  • A2 based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
  • A3. Send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
  • the second aspect of the present application provides a springmvc-based data interface and an automatic generation method thereof, and the method includes the following steps:
  • a third aspect of the present application further provides a computer readable storage medium storing a springmvc-based data interface and an automatic generation program thereof, the springmvc-based data
  • the interface and its description automatic generation program can be executed by at least one processor to cause the at least one processor to perform the steps of the springmvc-based data interface and its automatic generation method as described above.
  • the electronic device, the springmvc-based data interface and the description automatic generation method and the storage medium of the present invention are based on the springmvc technical framework corresponding to the predetermined service function, based on the springmvc technical framework.
  • the service function is mapped to a preset type data interface; the document description of the preset type data interface is synchronously written in the springmvc technology framework; and the springmvc technical framework is scanned to obtain a controller in the springmvc technical framework And the annotation class information after the controller is sent to a predetermined interface management platform.
  • the program description of the data interface corresponding to the data interface is realized, the work efficiency and accuracy of the data interface uploading to the interface management platform are improved, and the readability of the data interface is improved.
  • FIG. 1 is a schematic diagram of an optional hardware architecture of an electronic device according to the present invention.
  • FIG. 2 is a schematic diagram of a program module for automatically generating a program based on a springmvc data interface and an explanation thereof according to an embodiment of the electronic device of the present invention
  • FIG. 3 is a flow chart showing an implementation of a preferred embodiment of the springmvc-based data interface and its automatic generation method.
  • first, second and the like in the present invention are for the purpose of description only, and are not to be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. .
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
  • the electronic device 10 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through the communication bus 14. It should be noted that FIG. 1 only shows the electronic device 10 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static memory.
  • the memory 11 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10.
  • the memory 11 may also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk equipped on the electronic device 10, a smart memory card (SMC), and a secure digital (Secure Digital, SD) ) cards, flash cards, etc.
  • the memory 11 can also include both an internal storage unit of the electronic device 10 and an outsourced storage device thereof.
  • the memory 11 is generally used to store an operating system installed on the electronic device 10 and various types of application software, such as a springmvc-based data interface and an automatic generation program thereof. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. Processor 12 is typically used to control the overall operation of electronic device 10. In this embodiment, the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running springmvc-based data interface and an automatic generation program thereof.
  • CPU Central Processing Unit
  • controller microcontroller
  • microprocessor or other data processing chip in some embodiments.
  • Processor 12 is typically used to control the overall operation of electronic device 10.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running springmvc-based data interface and an automatic generation program thereof.
  • the network interface 13 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 10 and other electronic devices.
  • Communication bus 14 is used to implement a communication connection between components 11-13.
  • FIG. 1 shows only an electronic device 10 having components 11-14 and a springmvc-based data interface and its description automatically generating a program, but it should be understood that not all illustrated components may be implemented, and alternative implementations may be implemented. More or fewer components.
  • the electronic device 10 may further include a user interface (not shown in FIG. 1), and the user interface may include a display, an input unit such as a keyboard, wherein the user interface may further include a standard wired interface, a wireless interface, and the like.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch device, or the like. Further, the display may also be referred to as a display screen or display unit for displaying a springmvc-based data interface in the electronic device 10 and a process for explaining that the automatic generation program is executed by the processor 12.
  • the springmvc technology framework including the controller (Controller), is responsible for processing the request distributed by the pre-controller (DispatcherServlet) in the web.xml file, which encapsulates the data requested by the user through the business processing layer and encapsulates it into a The model in the MVC architecture is then returned to the corresponding interface (View) for display in the encapsulated MVC architecture.
  • Controller a very simple way to define a controller (Controller) is provided. This method does not need to inherit a specific class or implement a specific interface.
  • @Controller Just use @Controller to mark a class as a controller (Controller) and then use some For example, an annotation (@RequestMapping) for processing a request address map and an annotation (@RequestParam) for extracting and parsing a request parameter capability are used to define an address request (URL) and a controller (Controller) method for standard resources on the Internet. The mapping, so defined controller (Controller) can be accessed by the outside world.
  • a predetermined service function such as a method for acquiring user information, a method for obtaining a wealth management product, a market acquisition status, an industry consultation, etc.
  • controllers in the springmvc technical framework annotated by @controller
  • the method is to mark a preset type of Java class (for example, public class ApiTestController) as a data interface of a predetermined preset type network protocol (for example, a predetermined preset type network protocol is http protocol, and the corresponding data interface is uri Interface), after @controller, the mapping relationship between the preset java class and the controller is defined by the @requestMapping annotation to determine the service function of the controller defined as the springmvc technical framework. Can be accessed by the outside world through the data interface of the http protocol.
  • the description of the data interface corresponding to the preset type network protocol includes the function of the preset type data interface, the calling method of the preset type data interface, the return type of the preset type data interface, and the The parameters included in the preset type data interface and the meaning of the parameters;
  • the function corresponding to the preset java class (preset type data interface) in the springmvc technical framework is described by the @apiOperation annotation method. , calling method, return type; after @apiOperation annotation, describe the parameters included in the preset java class (preset type data interface) in the springmvc technical framework and the meaning of the parameter by means of @ApiParam annotation; Inserting a document description of the preset type data interface into a program of the preset type data interface.
  • the controller in the springmvc technology framework and the annotation class information after the controller are obtained and sent to a predetermined interface management platform.
  • the interface management platform includes a registration center and a display interface, and the registration center of the interface management platform registers the preset type data interface received, and displays the document description of the preset type data interface through the display interface; in this embodiment, The preset type data interface and the corresponding document description are included in the springmvc technology framework.
  • the registration center of the interface management platform only needs to register the controller in the springmvc technical framework, and the interface management platform The annotation class information after the controller in the springmvc technology framework is displayed on the display interface.
  • the springmvc technical framework corresponding to the preset type data interface is directly completed.
  • the automatic scan program installed by the server scans the update of the preset type data interface, and synchronously sends the scanned document information of the related preset type data interface to the interface management platform.
  • Registration center Further, the interface management platform updates the document information of the corresponding preset type data interface according to the related information received by the registration center, and the interface management platform can also enable the users of all preset types of data interfaces to know the current by using an email or a short message. Update and upgrade of the interface.
  • the electronic device proposed by the present invention maps the service function to a preset type data interface based on the springmvc technical framework by establishing a springmvc technical framework corresponding to a predetermined service function; in the springmvc technical framework Synchronizing the document description of the preset type data interface; scanning the springmvc technical framework, acquiring the controller in the springmvc technical framework, and the annotation class information after the controller, and sending the information to the predetermined interface Management platform.
  • the program description of the data interface corresponding to the data interface is realized, the work efficiency and accuracy of the data interface uploading to the interface management platform are improved, and the readability of the data interface is improved.
  • the springmvc-based data interface and its document automatic generation program are different according to the functions implemented by each part of the program, and can be described by a virtual program module having the same function. .
  • FIG. 2 it is a schematic diagram of a program module based on a springmvc data interface and a document automatic generation program thereof in an embodiment of the electronic device of the present invention.
  • the springmvc-based data interface and the description automatic generation program can be divided into the generation module 201, the writing module 202, and the acquisition module 203 according to the functions implemented by the various parts thereof.
  • the functions or operational steps implemented by the program modules 201-203 are similar to the above, and are not described in detail herein, by way of example, for example:
  • the generating module 201 is configured to establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of the preset type network protocol based on the springmvc technical framework, where the service function is defined as The controller of the springmvc technology framework;
  • the writing module 202 is configured to write, according to the annotation function of the springmvc technical framework, a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type after the annotation of the controller;
  • the obtaining module 203 is configured to send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
  • the present invention also proposes a springmvc-based data interface and an automatic generation method thereof.
  • FIG. 3 is a flowchart of a preferred embodiment of a springmvc-based data interface and an automatic generation method thereof. The method can be performed by a device that can be implemented by software and/or hardware.
  • the springmvc-based data interface and the automatic generation method thereof include:
  • Step S301 establishing a springmvc technical framework corresponding to the predetermined service function, and generating a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technical framework, where the service function is defined as the springmvc Controller of the technical framework;
  • the springmvc technology framework including the controller (Controller), is responsible for processing the request distributed by the pre-controller (DispatcherServlet) in the web.xml file, which encapsulates the data requested by the user through the business processing layer and encapsulates it into a The model in the MVC architecture is then returned to the corresponding interface (View) for display in the encapsulated MVC architecture.
  • Controller the controller
  • DisatcherServlet the pre-controller
  • the model in the MVC architecture is then returned to the corresponding interface (View) for display in the encapsulated MVC architecture.
  • a very simple way to define a controller is provided. This method does not need to inherit a specific class or implement a specific interface.
  • @Controller Just use @Controller to mark a class as a controller (Controller) and then use some For example, an annotation (@RequestMapping) for processing a request address map and an annotation (@RequestParam) for extracting and parsing a request parameter capability are used to define an address request (URL) and a controller (Controller) method for standard resources on the Internet. The mapping, so defined controller (Controller) can be accessed by the outside world.
  • a predetermined service function such as a method for acquiring user information, a method for obtaining a wealth management product, a market acquisition status, an industry consultation, etc.
  • controllers in the springmvc technical framework annotated by @controller
  • the method is to mark a preset type of Java class (for example, public class ApiTestController) as a data interface of a predetermined preset type network protocol (for example, a predetermined preset type network protocol is http protocol, and the corresponding data interface is uri Interface), after @controller, the mapping relationship between the preset java class and the controller is defined by the @requestMapping annotation to determine the service function of the controller defined as the springmvc technical framework. Can be accessed by the outside world through the data interface of the http protocol.
  • Step S302 based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
  • the description of the data interface corresponding to the preset type network protocol includes the function of the preset type data interface, the calling method of the preset type data interface, the return type of the preset type data interface, and the The parameters included in the preset type data interface and the meaning of the parameters;
  • the function corresponding to the preset java class (preset type data interface) in the springmvc technical framework is described by the @apiOperation annotation method. , calling method, return type; after @apiOperation annotation, describe the parameters included in the preset java class (preset type data interface) in the springmvc technical framework and the meaning of the parameter by means of @ApiParam annotation; Inserting a document description of the preset type data interface into a program of the preset type data interface.
  • Step S303 the data interface of the preset type network protocol and the corresponding description are sent to a predetermined interface management platform.
  • the controller in the springmvc technology framework and the annotation class information after the controller are obtained and sent to a predetermined interface management platform.
  • the interface management platform includes a registration center and a display interface, and the registration center of the interface management platform registers the preset type data interface received, and displays the document description of the preset type data interface through the display interface; in this embodiment, The preset type data interface and the corresponding document description are included in the springmvc technology framework.
  • the registration center of the interface management platform only needs to register the controller in the springmvc technical framework, and the interface management platform The annotation class information after the controller in the springmvc technology framework is displayed on the display interface.
  • the springmvc technical framework corresponding to the preset type data interface is directly completed.
  • the automatic scan program installed by the server scans the update of the preset type data interface, and synchronously sends the scanned document information of the related preset type data interface to the interface management platform.
  • Registration center Further, the interface management platform updates the document information of the corresponding preset type data interface according to the related information received by the registration center, and the interface management platform can also enable the users of all preset types of data interfaces to know the current by using an email or a short message. Update and upgrade of the interface.
  • the springmvc-based data interface and the automatic generation method thereof are provided by the present invention, and the service function is mapped to the preset based on the springmvc technical framework by establishing a springmvc technical framework corresponding to the predetermined service function.
  • a type data interface synchronously writing a document description of the preset type data interface in the springmvc technology framework; scanning the springmvc technical framework, acquiring a controller in the springmvc technical framework, and after the controller Annotation class information is sent to a predetermined interface management platform.
  • the program description of the data interface corresponding to the data interface is realized, the work efficiency and accuracy of the data interface uploading to the interface management platform are improved, and the readability of the data interface is improved.
  • the embodiment of the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a springmvc-based data interface and an automatic generation program thereof, and the springmvc-based data interface and the description thereof are automatically generated.
  • the program is executed by the processor, the following operations are implemented:
  • the specific embodiment of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the electronic device and the method for distributing the upgrade version based on the load weight scheduling, and is not described herein.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

An electronic device (10), a springmvc-based data interface and automatic description generation program therefor, and a storage medium. The electronic device creates a springmvc technical framework corresponding to a predetermined service function, maps the service function as a preset type of data interface on the basis of the springmvc technical framework, synchronously writes a document description of the preset type of data interface to the springmvc technical framework, and scans the springmvc technical framework to obtain a controller in the springmvc technical framework and annotation information after the controller and sends same to a predetermined interface management platform. The present invention implements the programming of a document description corresponding to a data interface, improves the work efficiency and accuracy of uploading from the data interface to an interface management platform, and improves the readability of the data interface.

Description

电子装置、基于springmvc的数据接口及其说明自动生成方法及存储介质Electronic device, springmvc-based data interface and description automatic generation method thereof and storage medium
本申请要求于2017年12月28日提交中国专利局、申请号为201711458087.7,发明名称为“电子装置、基于springmvc的数据接口及其说明自动生成方法及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 28, 2017, the Chinese Patent Office, the application number is 201711458087.7, and the invention name is "electronic device, springmvc-based data interface and its automatic generation method and storage medium". The entire contents of this application are incorporated herein by reference.
技术领域Technical field
本发明涉及应用程序开发领域,尤其涉及一种电子装置、基于springmvc的数据接口及其说明自动生成方法及存储介质。The present invention relates to the field of application development, and in particular, to an electronic device, a springmvc-based data interface, an automatic generation method thereof, and a storage medium.
背景技术Background technique
随着互联网应用的普及,各公司之间通常利用接口管理平台上开放的数据接口(例如uri接口)进行数据的交互,实现服务功能的共享。目前,由于数据接口程序与对应的接口说明文档是独立的文本,导致将数据接口注册到接口管理平台的过程中需要借助人工进行添加配置对应的接口说明文档(例如需要在接口管理平台上编写接口对应的文档说明、或者将预先编制的接口文档说明导入管理平台并保存),不仅工作效率低容易出错,且文档的更新存储过程存在时间延迟,导致数据接口的可读性延迟。With the popularity of Internet applications, companies often use the open data interfaces (such as the uri interface) on the interface management platform to exchange data and realize the sharing of service functions. At present, since the data interface program and the corresponding interface description document are independent texts, the interface description document corresponding to the manual configuration needs to be manually added in the process of registering the data interface to the interface management platform (for example, an interface needs to be written on the interface management platform). The corresponding document description, or the pre-programmed interface document description is imported into the management platform and saved), which is not only inefficient and error-prone, but also has a time delay in updating the stored procedure of the document, resulting in delay in readability of the data interface.
发明内容Summary of the invention
有鉴于此,本发明提出一种电子装置、基于springmvc的数据接口及其说明自动生成方法及存储介质,实现了将数据接口对应的文档说明程序化,提高了数据接口上传至接口管理平台的工作效率及准确性,且提高了数据接口的可读性。In view of this, the present invention provides an electronic device, a springmvc-based data interface, an automatic generation method thereof, and a storage medium, which realizes programming of a document corresponding to a data interface, and improves the uploading of the data interface to the interface management platform. Efficiency and accuracy, and improved readability of the data interface.
首先,为实现上述目的,本申请第一方面提出一种电子装置,所述电子 装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上存储的基于springmvc的数据接口及其说明自动生成程序,所述基于springmvc的数据接口及其说明自动生成程序被所述处理器执行时实现如下步骤:First, in order to achieve the above object, a first aspect of the present application provides an electronic device, where the electronic device includes a memory and a processor connected to the memory, where the processor is configured to execute a springmvc based storage stored on the memory The data interface and its description automatically generate a program, and the springmvc-based data interface and the description automatic generation program are executed by the processor to implement the following steps:
A1、建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与所述预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;A1. Establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of the preset type network protocol based on the springmvc technology framework, where the service function is defined as Controller of springmvc technology framework;
A2、基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;A2, based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
A3、将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。A3. Send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
此外,为实现上述目的,本申请第二方面提供一种基于springmvc的数据接口及其说明自动生成方法,该方法包括如下步骤:In addition, in order to achieve the above object, the second aspect of the present application provides a springmvc-based data interface and an automatic generation method thereof, and the method includes the following steps:
S1、建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;S1. Establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technology framework, where the service function is defined as the springmvc technology. Frame controller
S2、基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;S2, based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
S3、将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。S3. Send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有基于springmvc的数据接口及其说明自动生成程序,所述基于springmvc的数据接口及其说明自动生成程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述基于springmvc的数 据接口及其说明自动生成方法的步骤。Further, in order to achieve the above object, a third aspect of the present application further provides a computer readable storage medium storing a springmvc-based data interface and an automatic generation program thereof, the springmvc-based data The interface and its description automatic generation program can be executed by at least one processor to cause the at least one processor to perform the steps of the springmvc-based data interface and its automatic generation method as described above.
相较于现有技术,本发明所提出的电子装置、基于springmvc的数据接口及其说明自动生成方法及存储介质,通过建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架将所述服务功能映射为预设类型数据接口;在所述springmvc技术框架中同步写入所述预设类型数据接口的文档说明;扫描所述springmvc技术框架,获取所述springmvc技术框架中的控制器、以及所述控制器之后的注解类信息,发送至预先确定的接口管理平台。实现了将数据接口对应的文档说明程序化,提高了数据接口上传至接口管理平台的工作效率及准确性,且提高了数据接口的可读性。Compared with the prior art, the electronic device, the springmvc-based data interface and the description automatic generation method and the storage medium of the present invention are based on the springmvc technical framework corresponding to the predetermined service function, based on the springmvc technical framework. The service function is mapped to a preset type data interface; the document description of the preset type data interface is synchronously written in the springmvc technology framework; and the springmvc technical framework is scanned to obtain a controller in the springmvc technical framework And the annotation class information after the controller is sent to a predetermined interface management platform. The program description of the data interface corresponding to the data interface is realized, the work efficiency and accuracy of the data interface uploading to the interface management platform are improved, and the readability of the data interface is improved.
附图说明DRAWINGS
图1是本发明提出的电子装置一可选的硬件架构的示意图;1 is a schematic diagram of an optional hardware architecture of an electronic device according to the present invention;
图2是本发明电子装置一实施例中基于springmvc的数据接口及其说明自动生成程序的程序模块示意图;2 is a schematic diagram of a program module for automatically generating a program based on a springmvc data interface and an explanation thereof according to an embodiment of the electronic device of the present invention;
图3是本发明基于springmvc的数据接口及其说明自动生成方法较佳实施例的实施流程图。3 is a flow chart showing an implementation of a preferred embodiment of the springmvc-based data interface and its automatic generation method.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的, 而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present invention are for the purpose of description only, and are not to be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. . Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
参阅图1所示,是本发明提出的电子装置一可选的硬件架构示意图。本实施例中,电子装置10可包括,但不仅限于,可通过通信总线14相互通信连接存储器11、处理器12、网络接口13。需要指出的是,图1仅示出了具有组件11-14的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Referring to FIG. 1 , it is an optional hardware architecture diagram of the electronic device proposed by the present invention. In this embodiment, the electronic device 10 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through the communication bus 14. It should be noted that FIG. 1 only shows the electronic device 10 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
其中,存储器11至少包括一种类型的计算机可读存储介质,计算机可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器11可以是电子装置10的内部存储单元,例如电子装置10的硬盘或内存。在另一些实施例中,存储器11也可以是电子装置10的外包存储设备,例如电子装置10上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器11还可以既包括电子装置10的内部存储单元也包括其外包存储设备。本实施例中,存储器11通常用于存储安装于电子装置10的操作***和各类应用软件,例如基于springmvc的数据接口及其说明自动生成程序等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static memory. Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10. In other embodiments, the memory 11 may also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk equipped on the electronic device 10, a smart memory card (SMC), and a secure digital (Secure Digital, SD) ) cards, flash cards, etc. Of course, the memory 11 can also include both an internal storage unit of the electronic device 10 and an outsourced storage device thereof. In this embodiment, the memory 11 is generally used to store an operating system installed on the electronic device 10 and various types of application software, such as a springmvc-based data interface and an automatic generation program thereof. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。处理器12通 常用于控制电子装置10的总体操作。本实施例中,处理器12用于运行存储器11中存储的程序代码或者处理数据,例如运行的基于springmvc的数据接口及其说明自动生成程序等。 Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. Processor 12 is typically used to control the overall operation of electronic device 10. In this embodiment, the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running springmvc-based data interface and an automatic generation program thereof.
网络接口13可包括无线网络接口或有线网络接口,网络接口13通常用于在电子装置10与其他电子设备之间建立通信连接。The network interface 13 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 10 and other electronic devices.
通信总线14用于实现组件11-13之间的通信连接。 Communication bus 14 is used to implement a communication connection between components 11-13.
图1仅示出了具有组件11-14以及基于基于springmvc的数据接口及其说明自动生成程序的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。1 shows only an electronic device 10 having components 11-14 and a springmvc-based data interface and its description automatically generating a program, but it should be understood that not all illustrated components may be implemented, and alternative implementations may be implemented. More or fewer components.
可选地,电子装置10还可以包括用户接口(图1中未示出),用户接口可以包括显示器、输入单元比如键盘,其中,用户接口还可以包括标准的有线接口、无线接口等。Optionally, the electronic device 10 may further include a user interface (not shown in FIG. 1), and the user interface may include a display, an input unit such as a keyboard, wherein the user interface may further include a standard wired interface, a wireless interface, and the like.
可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED触摸器等。进一步地,显示器也可称为显示屏或显示单元,用于显示在电子装置10中基于springmvc的数据接口及其说明自动生成程序被处理器12执行的过程。Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch device, or the like. Further, the display may also be referred to as a display screen or display unit for displaying a springmvc-based data interface in the electronic device 10 and a process for explaining that the automatic generation program is executed by the processor 12.
进一步地,在本发明电子装置10的一实施例中基于springmvc的数据接口及其说明自动生成程序被处理器12执行时,实现如下操作:Further, in an embodiment of the electronic device 10 of the present invention, when the springmvc-based data interface and the description automatic generation program are executed by the processor 12, the following operations are implemented:
建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;Establishing a springmvc technical framework corresponding to the predetermined service function, and generating a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technology framework, where the service function is defined as the springmvc technical framework Controller
通常,springmvc技术框架,包括控制器(Controller),用来负责处理由web.xml文件中的前置控制器(DispatcherServlet)分发的请求,它把用户请求的数据经过业务处理层处理之后封装成一个MVC架构中的模型(Model),然后再把封装成的MVC架构中的模型(Model)返回给对应的界面(View)进行展示。而在SpringMVC中提供了一个非常简便的定义控制器(Controller) 的方法,该方法无需继承特定的类或实现特定的接口,只需使用@Controller标记一个类是控制器(Controller),然后使用一些注解例如,处理请求地址映射的注解(@RequestMapping)和提取并解析请求参数能力的注解(@RequestParam)等用以定义互联网上标准资源的地址请求(URL)和控制器(Controller)方法之间的映射,这样定义的控制器(Controller)就能被外界访问。Usually, the springmvc technology framework, including the controller (Controller), is responsible for processing the request distributed by the pre-controller (DispatcherServlet) in the web.xml file, which encapsulates the data requested by the user through the business processing layer and encapsulates it into a The model in the MVC architecture is then returned to the corresponding interface (View) for display in the encapsulated MVC architecture. In SpringMVC, a very simple way to define a controller (Controller) is provided. This method does not need to inherit a specific class or implement a specific interface. Just use @Controller to mark a class as a controller (Controller) and then use some For example, an annotation (@RequestMapping) for processing a request address map and an annotation (@RequestParam) for extracting and parsing a request parameter capability are used to define an address request (URL) and a controller (Controller) method for standard resources on the Internet. The mapping, so defined controller (Controller) can be accessed by the outside world.
在本实施例中,将预先确定的服务功能例如获取用户信息的方法、获取理财产品的方法、获取市场状况、行业咨询等定义为springmvc技术框架中的控制器(controller);通过@controller注解的方式来标注一个预设类型的java类(例如,public class ApiTestController)作为预先确定的预设类型网络协议的数据接口(例如,预先确定的预设类型网络协议为http协议,对应的数据接口为uri接口),在@controller之后通过@requestMapping注解的方式来定义所述预设的java类与控制器(controller)之间的映射关系,以确定定义为springmvc技术框架的控制器(controller)的服务功能能够被外界通过http协议的数据接口访问。In this embodiment, a predetermined service function, such as a method for acquiring user information, a method for obtaining a wealth management product, a market acquisition status, an industry consultation, etc., are defined as controllers in the springmvc technical framework; annotated by @controller The method is to mark a preset type of Java class (for example, public class ApiTestController) as a data interface of a predetermined preset type network protocol (for example, a predetermined preset type network protocol is http protocol, and the corresponding data interface is uri Interface), after @controller, the mapping relationship between the preset java class and the controller is defined by the @requestMapping annotation to determine the service function of the controller defined as the springmvc technical framework. Can be accessed by the outside world through the data interface of the http protocol.
基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;Determining, according to the annotation function of the springmvc technical framework, a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type after the annotation of the controller;
其中,所述预设类型网络协议的数据接口对应的说明包括所述预设类型数据接口的功能、所述预设类型数据接口的调用方法、所述预设类型数据接口的返回类型、所述预设类型数据接口包含的参数以及所述参数的意义;The description of the data interface corresponding to the preset type network protocol includes the function of the preset type data interface, the calling method of the preset type data interface, the return type of the preset type data interface, and the The parameters included in the preset type data interface and the meaning of the parameters;
在本实施例中,基于springmvc技术框架的注解功能,在@requestMapping注解之后,通过@apiOperation注解的方式描述所述springmvc技术框架中所述预设的java类(预设类型数据接口)对应的功能、调用方法、返回类型;在@apiOperation注解之后通过@ApiParam注解的方式描述所述springmvc技术框架中所述预设的java类(预设类型数据接口)包含的参数以及所述参数的意义;实现了将所述预设类型数据接口的文档说明***该预设类型数据接 口的程序中。In this embodiment, based on the annotation function of the springmvc technical framework, after the @requestMapping annotation, the function corresponding to the preset java class (preset type data interface) in the springmvc technical framework is described by the @apiOperation annotation method. , calling method, return type; after @apiOperation annotation, describe the parameters included in the preset java class (preset type data interface) in the springmvc technical framework and the meaning of the parameter by means of @ApiParam annotation; Inserting a document description of the preset type data interface into a program of the preset type data interface.
将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。And transmitting the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
在本实施例中,通过扫描所述springmvc技术框架,获取所述springmvc技术框架中的控制器、以及所述控制器之后的注解类信息,并发送至预先确定的接口管理平台。In this embodiment, by scanning the springmvc technology framework, the controller in the springmvc technology framework and the annotation class information after the controller are obtained and sent to a predetermined interface management platform.
通常,接口管理平台包括注册中心和显示界面,接口管理平台的注册中心注册所接收到的预设类型数据接口,并通过显示界面显示预设类型数据接口的文档说明;在本实施例中,由于预设类型数据接口以及对应的文档说明均包含在springmvc技术框架中,根据springmvc技术框架的原理,在接口管理平台的注册中心只需注册所述springmvc技术框架中的控制器,在接口管理平台的显示界面上显示所述springmvc技术框架中的控制器之后的注解类信息。Generally, the interface management platform includes a registration center and a display interface, and the registration center of the interface management platform registers the preset type data interface received, and displays the document description of the preset type data interface through the display interface; in this embodiment, The preset type data interface and the corresponding document description are included in the springmvc technology framework. According to the principle of the springmvc technology framework, the registration center of the interface management platform only needs to register the controller in the springmvc technical framework, and the interface management platform The annotation class information after the controller in the springmvc technology framework is displayed on the display interface.
可以理解地,当所述预设类型数据接口的文档说明需要添加或删除等更新操作的时候,直接随所述预设类型数据接口对应的springmvc技术框架完成。安装有对应的服务***的服务器在重启时,通过该服务器安装的自动扫描程序扫描完成预设类型数据接口的更新,并同步将扫描到的相关预设类型数据接口的文档信息发送至接口管理平台的注册中心。进一步地,接口管理平台根据注册中心接收到的相关信息去更新相应的预设类型数据接口的文档信息,接口管理平台也可以通过邮件或者短信等方式使所有预设类型数据接口的使用方知道当前接口的更新和升级。It can be understood that when the document of the preset type data interface indicates that an update operation such as adding or deleting is required, the springmvc technical framework corresponding to the preset type data interface is directly completed. When the server with the corresponding service system is restarted, the automatic scan program installed by the server scans the update of the preset type data interface, and synchronously sends the scanned document information of the related preset type data interface to the interface management platform. Registration center. Further, the interface management platform updates the document information of the corresponding preset type data interface according to the related information received by the registration center, and the interface management platform can also enable the users of all preset types of data interfaces to know the current by using an email or a short message. Update and upgrade of the interface.
由上述事实例可知,本发明提出的电子装置通过建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架将所述服务功能映射为预设类型数据接口;在所述springmvc技术框架中同步写入所述预设类型数据接口的文档说明;扫描所述springmvc技术框架,获取所述springmvc技术框架中的控制器、以及所述控制器之后的注解类信息,发送至预先确定 的接口管理平台。实现了将数据接口对应的文档说明程序化,提高了数据接口上传至接口管理平台的工作效率及准确性,且提高了数据接口的可读性。It can be seen from the above facts that the electronic device proposed by the present invention maps the service function to a preset type data interface based on the springmvc technical framework by establishing a springmvc technical framework corresponding to a predetermined service function; in the springmvc technical framework Synchronizing the document description of the preset type data interface; scanning the springmvc technical framework, acquiring the controller in the springmvc technical framework, and the annotation class information after the controller, and sending the information to the predetermined interface Management platform. The program description of the data interface corresponding to the data interface is realized, the work efficiency and accuracy of the data interface uploading to the interface management platform are improved, and the readability of the data interface is improved.
进一步需要说明的是,如下面图2所示的实施例,基于springmvc的数据接口及其文档自动生成程序程序依据其各部分程序所实现的功能不同,可用具有相同功能的虚拟的程序模块进行描述。It should be further noted that, as shown in the following embodiment of FIG. 2, the springmvc-based data interface and its document automatic generation program are different according to the functions implemented by each part of the program, and can be described by a virtual program module having the same function. .
请参阅图2所示,是本发明电子装置一实施例中基于springmvc的数据接口及其文档自动生成程序程序的程序模块示意图。本实施例中,基于springmvc的数据接口及其说明自动生成程序依据其各部分所实现的功能,可以被分割成生成模块201、写入模块202、获取模块203。所述程序模块201-203所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:Referring to FIG. 2, it is a schematic diagram of a program module based on a springmvc data interface and a document automatic generation program thereof in an embodiment of the electronic device of the present invention. In this embodiment, the springmvc-based data interface and the description automatic generation program can be divided into the generation module 201, the writing module 202, and the acquisition module 203 according to the functions implemented by the various parts thereof. The functions or operational steps implemented by the program modules 201-203 are similar to the above, and are not described in detail herein, by way of example, for example:
生成模块201用于建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;The generating module 201 is configured to establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of the preset type network protocol based on the springmvc technical framework, where the service function is defined as The controller of the springmvc technology framework;
写入模块202用于基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;The writing module 202 is configured to write, according to the annotation function of the springmvc technical framework, a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type after the annotation of the controller;
获取模块203用于将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。The obtaining module 203 is configured to send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
此外,本发明还提出一种基于springmvc的数据接口及其说明自动生成方法。请参阅图3所示,为本发明基于springmvc的数据接口及其说明自动生成方法较佳实施例的流程图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。In addition, the present invention also proposes a springmvc-based data interface and an automatic generation method thereof. Please refer to FIG. 3, which is a flowchart of a preferred embodiment of a springmvc-based data interface and an automatic generation method thereof. The method can be performed by a device that can be implemented by software and/or hardware.
在本实施例中,基于基于springmvc的数据接口及其说明自动生成方法包括:In this embodiment, the springmvc-based data interface and the automatic generation method thereof include:
步骤S301,建立预先确定的服务功能对应的springmvc技术框架,基于 所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;Step S301, establishing a springmvc technical framework corresponding to the predetermined service function, and generating a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technical framework, where the service function is defined as the springmvc Controller of the technical framework;
通常,springmvc技术框架,包括控制器(Controller),用来负责处理由web.xml文件中的前置控制器(DispatcherServlet)分发的请求,它把用户请求的数据经过业务处理层处理之后封装成一个MVC架构中的模型(Model),然后再把封装成的MVC架构中的模型(Model)返回给对应的界面(View)进行展示。而在SpringMVC中提供了一个非常简便的定义控制器(Controller)的方法,该方法无需继承特定的类或实现特定的接口,只需使用@Controller标记一个类是控制器(Controller),然后使用一些注解例如,处理请求地址映射的注解(@RequestMapping)和提取并解析请求参数能力的注解(@RequestParam)等用以定义互联网上标准资源的地址请求(URL)和控制器(Controller)方法之间的映射,这样定义的控制器(Controller)就能被外界访问。Usually, the springmvc technology framework, including the controller (Controller), is responsible for processing the request distributed by the pre-controller (DispatcherServlet) in the web.xml file, which encapsulates the data requested by the user through the business processing layer and encapsulates it into a The model in the MVC architecture is then returned to the corresponding interface (View) for display in the encapsulated MVC architecture. In SpringMVC, a very simple way to define a controller is provided. This method does not need to inherit a specific class or implement a specific interface. Just use @Controller to mark a class as a controller (Controller) and then use some For example, an annotation (@RequestMapping) for processing a request address map and an annotation (@RequestParam) for extracting and parsing a request parameter capability are used to define an address request (URL) and a controller (Controller) method for standard resources on the Internet. The mapping, so defined controller (Controller) can be accessed by the outside world.
在本实施例中,将预先确定的服务功能例如获取用户信息的方法、获取理财产品的方法、获取市场状况、行业咨询等定义为springmvc技术框架中的控制器(controller);通过@controller注解的方式来标注一个预设类型的java类(例如,public class ApiTestController)作为预先确定的预设类型网络协议的数据接口(例如,预先确定的预设类型网络协议为http协议,对应的数据接口为uri接口),在@controller之后通过@requestMapping注解的方式来定义所述预设的java类与控制器(controller)之间的映射关系,以确定定义为springmvc技术框架的控制器(controller)的服务功能能够被外界通过http协议的数据接口访问。In this embodiment, a predetermined service function, such as a method for acquiring user information, a method for obtaining a wealth management product, a market acquisition status, an industry consultation, etc., are defined as controllers in the springmvc technical framework; annotated by @controller The method is to mark a preset type of Java class (for example, public class ApiTestController) as a data interface of a predetermined preset type network protocol (for example, a predetermined preset type network protocol is http protocol, and the corresponding data interface is uri Interface), after @controller, the mapping relationship between the preset java class and the controller is defined by the @requestMapping annotation to determine the service function of the controller defined as the springmvc technical framework. Can be accessed by the outside world through the data interface of the http protocol.
步骤S302,基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;Step S302, based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
其中,所述预设类型网络协议的数据接口对应的说明包括所述预设类型 数据接口的功能、所述预设类型数据接口的调用方法、所述预设类型数据接口的返回类型、所述预设类型数据接口包含的参数以及所述参数的意义;The description of the data interface corresponding to the preset type network protocol includes the function of the preset type data interface, the calling method of the preset type data interface, the return type of the preset type data interface, and the The parameters included in the preset type data interface and the meaning of the parameters;
在本实施例中,基于springmvc技术框架的注解功能,在@requestMapping注解之后,通过@apiOperation注解的方式描述所述springmvc技术框架中所述预设的java类(预设类型数据接口)对应的功能、调用方法、返回类型;在@apiOperation注解之后通过@ApiParam注解的方式描述所述springmvc技术框架中所述预设的java类(预设类型数据接口)包含的参数以及所述参数的意义;实现了将所述预设类型数据接口的文档说明***该预设类型数据接口的程序中。In this embodiment, based on the annotation function of the springmvc technical framework, after the @requestMapping annotation, the function corresponding to the preset java class (preset type data interface) in the springmvc technical framework is described by the @apiOperation annotation method. , calling method, return type; after @apiOperation annotation, describe the parameters included in the preset java class (preset type data interface) in the springmvc technical framework and the meaning of the parameter by means of @ApiParam annotation; Inserting a document description of the preset type data interface into a program of the preset type data interface.
步骤S303,将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。Step S303, the data interface of the preset type network protocol and the corresponding description are sent to a predetermined interface management platform.
在本实施例中,通过扫描所述springmvc技术框架,获取所述springmvc技术框架中的控制器、以及所述控制器之后的注解类信息,并发送至预先确定的接口管理平台。In this embodiment, by scanning the springmvc technology framework, the controller in the springmvc technology framework and the annotation class information after the controller are obtained and sent to a predetermined interface management platform.
通常,接口管理平台包括注册中心和显示界面,接口管理平台的注册中心注册所接收到的预设类型数据接口,并通过显示界面显示预设类型数据接口的文档说明;在本实施例中,由于预设类型数据接口以及对应的文档说明均包含在springmvc技术框架中,根据springmvc技术框架的原理,在接口管理平台的注册中心只需注册所述springmvc技术框架中的控制器,在接口管理平台的显示界面上显示所述springmvc技术框架中的控制器之后的注解类信息。Generally, the interface management platform includes a registration center and a display interface, and the registration center of the interface management platform registers the preset type data interface received, and displays the document description of the preset type data interface through the display interface; in this embodiment, The preset type data interface and the corresponding document description are included in the springmvc technology framework. According to the principle of the springmvc technology framework, the registration center of the interface management platform only needs to register the controller in the springmvc technical framework, and the interface management platform The annotation class information after the controller in the springmvc technology framework is displayed on the display interface.
可以理解地,当所述预设类型数据接口的文档说明需要添加或删除等更新操作的时候,直接随所述预设类型数据接口对应的springmvc技术框架完成。安装有对应的服务***的服务器在重启时,通过该服务器安装的自动扫描程序扫描完成预设类型数据接口的更新,并同步将扫描到的相关预设类型数据接口的文档信息发送至接口管理平台的注册中心。进一步地,接口管理 平台根据注册中心接收到的相关信息去更新相应的预设类型数据接口的文档信息,接口管理平台也可以通过邮件或者短信等方式使所有预设类型数据接口的使用方知道当前接口的更新和升级。It can be understood that when the document of the preset type data interface indicates that an update operation such as adding or deleting is required, the springmvc technical framework corresponding to the preset type data interface is directly completed. When the server with the corresponding service system is restarted, the automatic scan program installed by the server scans the update of the preset type data interface, and synchronously sends the scanned document information of the related preset type data interface to the interface management platform. Registration center. Further, the interface management platform updates the document information of the corresponding preset type data interface according to the related information received by the registration center, and the interface management platform can also enable the users of all preset types of data interfaces to know the current by using an email or a short message. Update and upgrade of the interface.
由上述事实例可知,本发明提出的基于springmvc的数据接口及其说明自动生成方法,通过建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架将所述服务功能映射为预设类型数据接口;在所述springmvc技术框架中同步写入所述预设类型数据接口的文档说明;扫描所述springmvc技术框架,获取所述springmvc技术框架中的控制器、以及所述控制器之后的注解类信息,发送至预先确定的接口管理平台。实现了将数据接口对应的文档说明程序化,提高了数据接口上传至接口管理平台的工作效率及准确性,且提高了数据接口的可读性。It can be seen from the above facts that the springmvc-based data interface and the automatic generation method thereof are provided by the present invention, and the service function is mapped to the preset based on the springmvc technical framework by establishing a springmvc technical framework corresponding to the predetermined service function. a type data interface; synchronously writing a document description of the preset type data interface in the springmvc technology framework; scanning the springmvc technical framework, acquiring a controller in the springmvc technical framework, and after the controller Annotation class information is sent to a predetermined interface management platform. The program description of the data interface corresponding to the data interface is realized, the work efficiency and accuracy of the data interface uploading to the interface management platform are improved, and the readability of the data interface is improved.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有基于springmvc的数据接口及其说明自动生成程序,所述基于springmvc的数据接口及其说明自动生成程序被处理器执行时实现如下操作:In addition, the embodiment of the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a springmvc-based data interface and an automatic generation program thereof, and the springmvc-based data interface and the description thereof are automatically generated. When the program is executed by the processor, the following operations are implemented:
建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;Establishing a springmvc technical framework corresponding to the predetermined service function, and generating a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technology framework, where the service function is defined as the springmvc technical framework Controller
基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;Determining, according to the annotation function of the springmvc technical framework, a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type after the annotation of the controller;
将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。And transmitting the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
本发明计算机可读存储介质具体实施方式与上述电子装置以及基于负载权重调度发布升级版本应用的方法各实施例基本相同,在此不作累述。The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the electronic device and the method for distributing the upgrade version based on the load weight scheduling, and is not described herein.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上存储的基于springmvc的数据接口及其说明自动生成程序,所述基于springmvc的数据接口及其说明自动生成程序被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory, and a processor connected to the memory, wherein the processor is configured to execute a springmvc-based data interface stored on the memory and an automatic generation program thereof The springmvc-based data interface and the description automatic generation program are executed by the processor to implement the following steps:
    A1、建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;A1. Establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technology framework, where the service function is defined as the springmvc technology. Frame controller
    A2、基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;A2, based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
    A3、将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。A3. Send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
  2. 如权利要求1所述的电子装置,其特征在于,所述步骤A1包括如下步骤:The electronic device according to claim 1, wherein said step A1 comprises the following steps:
    将所述预先确定的服务功能定义为所述springmvc技术框架中的控制器;Defining the predetermined service function as a controller in the springmvc technology framework;
    基于所述springmvc技术框架的注解功能在所述控制器之后通过所述预先确定的注解类型标注一个预设类型java类作为所述预设类型网络协议的数据接口;An annotation function based on the springmvc technical framework, after the controller, labels a preset type java class as a data interface of the preset type network protocol by using the predetermined annotation type;
    在所述控制器的注解之后定义所述java类与控制器之间的映射关系,以确定所述控制器能够利用所述预设类型网络协议的数据接口访问。A mapping relationship between the java class and the controller is defined after the annotation of the controller to determine that the controller is capable of accessing using a data interface of the preset type network protocol.
  3. 如权利要求1所述的电子装置,其特征在于,在所述步骤A2中,所述预设类型网络协议的数据接口对应的说明包括:The electronic device according to claim 1, wherein in the step A2, the description of the data interface corresponding to the preset type network protocol comprises:
    所述预设类型网络协议功能、调用方法、返回类型、包含的参数以及所述参数的意义。The preset type network protocol function, the calling method, the return type, the included parameters, and the meaning of the parameters.
  4. 如权利要求3所述的电子装置,其特征在于,所述预设类型网络协议 的数据接口为http的uri接口。The electronic device according to claim 3, wherein the data interface of the preset type network protocol is a uri interface of http.
  5. 如权利要求1所述的电子装置,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The electronic device of claim 1, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  6. 如权利要求2所述的电子装置,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The electronic device of claim 2, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  7. 如权利要求3所述的电子装置,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The electronic device of claim 3, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  8. 如权利要求4所述的电子装置,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The electronic device of claim 4, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  9. 一种基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述方法包括如下步骤:A data interface based on springmvc and an automatic generation method thereof, characterized in that the method comprises the following steps:
    S1、建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;S1. Establish a springmvc technical framework corresponding to the predetermined service function, and generate a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technology framework, where the service function is defined as the springmvc technology. Frame controller
    S2、基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;S2, based on the annotation function of the springmvc technical framework, after the annotation of the controller, write a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type;
    S3、将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。S3. Send the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
  10. 如权利要求9所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述步骤S1包括如下步骤:The springmvc-based data interface and the automatic description generating method thereof according to claim 9, wherein the step S1 comprises the following steps:
    将所述预先确定的服务功能定义为所述springmvc技术框架中的控制器;Defining the predetermined service function as a controller in the springmvc technology framework;
    基于所述springmvc技术框架的注解功能在所述控制器之后通过所述预先确定的注解类型标注一个预设类型java类作为所述预设类型网络协议的数据接口;An annotation function based on the springmvc technical framework, after the controller, labels a preset type java class as a data interface of the preset type network protocol by using the predetermined annotation type;
    在所述控制器的注解之后定义所述java类与控制器之间的映射关系,以确定利用所述预设类型网络协议的数据接口访问到所述控制器。A mapping relationship between the java class and the controller is defined after the annotation of the controller to determine access to the controller using a data interface of the preset type network protocol.
  11. 如权利要求9所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,在所述步骤S2中,所述预设类型网络协议的数据接口对应的说明包括:The springmvc-based data interface and the automatic description method thereof according to claim 9, wherein in the step S2, the description of the data interface corresponding to the preset type network protocol includes:
    所述预设类型网络协议功能、调用方法、返回类型、包含的参数以及所述参数的意义。The preset type network protocol function, the calling method, the return type, the included parameters, and the meaning of the parameters.
  12. 如权利要求11所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述预设类型网络协议的数据接口为http的uri接口。The springmvc-based data interface and the automatic description method thereof according to claim 11, wherein the data interface of the preset type network protocol is a uri interface of http.
  13. 如权利要求9所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The springmvc-based data interface and the automatic description generating method thereof according to claim 9, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  14. 如权利要求10所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The springmvc-based data interface and the automatic description generating method thereof according to claim 10, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  15. 如权利要求11所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The springmvc-based data interface and the automatic description generating method thereof according to claim 11, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  16. 如权利要求12所述的基于springmvc的数据接口及其说明自动生成方法,其特征在于,所述预先确定的注解类型包括@controller注解、@requestMapping注解、@apiOperation注解、@ApiParam注解。The springmvc-based data interface and the automatic description generating method thereof according to claim 12, wherein the predetermined annotation type comprises a @controller annotation, a @requestMapping annotation, an @apiOperation annotation, and an @ApiParam annotation.
  17. 一种计算机可读存储介质,所述计算机可读存储介质存储有基于springmvc的数据接口及其说明自动生成程序,所述基于springmvc的数据接 口及其说明自动生成程序可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A computer readable storage medium storing a springmvc-based data interface and an instruction automatic generation program thereof, the springmvc-based data interface and the description automatic generation program thereof can be executed by at least one processor, Taking the at least one processor to perform the following steps:
    建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器;Establishing a springmvc technical framework corresponding to the predetermined service function, and generating a mapping relationship between the service function and a data interface of a preset type network protocol based on the springmvc technology framework, where the service function is defined as the springmvc technical framework Controller
    基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明;Determining, according to the annotation function of the springmvc technical framework, a description corresponding to the data interface of the preset type network protocol by using a predetermined annotation type after the annotation of the controller;
    将所述预设类型网络协议的数据接口及所述对应的说明发送至预先确定的接口管理平台。And transmitting the data interface of the preset type network protocol and the corresponding description to a predetermined interface management platform.
  18. 如权利要求17所述的存储介质,其特征在于,所述建立预先确定的服务功能对应的springmvc技术框架,基于所述springmvc技术框架生成所述服务功能与预设类型网络协议的数据接口之间的映射关系,所述服务功能定义为所述springmvc技术框架的控制器的步骤包括:The storage medium according to claim 17, wherein the springmvc technical framework corresponding to the predetermined service function is established, and the data function between the service function and the preset type network protocol is generated based on the springmvc technology framework. The mapping relationship, the steps of the service function defined as the controller of the springmvc technology framework include:
    将所述预先确定的服务功能定义为所述springmvc技术框架中的控制器;Defining the predetermined service function as a controller in the springmvc technology framework;
    基于所述springmvc技术框架的注解功能在所述控制器之后通过所述预先确定的注解类型标注一个预设类型java类作为所述预设类型网络协议的数据接口;An annotation function based on the springmvc technical framework, after the controller, labels a preset type java class as a data interface of the preset type network protocol by using the predetermined annotation type;
    在所述控制器的注解之后定义所述java类与控制器之间的映射关系,以确定利用所述预设类型网络协议的数据接口访问到所述控制器。A mapping relationship between the java class and the controller is defined after the annotation of the controller to determine access to the controller using a data interface of the preset type network protocol.
  19. 如权利要求17所述的存储介质,其特征在于,在所述步骤基于所述springmvc技术框架的注解功能,在所述控制器的注解之后利用预先确定的注解类型写入所述预设类型网络协议的数据接口对应的说明的步骤中,所述预设类型网络协议的数据接口对应的说明包括:A storage medium according to claim 17, wherein said step is based on said annotation function of said springmvc technology framework, said annotation type being written to said preset type network after said annotation of said controller In the step of the description corresponding to the data interface of the protocol, the description corresponding to the data interface of the preset type network protocol includes:
    所述预设类型网络协议功能、调用方法、返回类型、包含的参数以及所述参数的意义。The preset type network protocol function, the calling method, the return type, the included parameters, and the meaning of the parameters.
  20. 如权利要求19所述的存储介质,其特征在于,所述预设类型网络协 议的数据接口为http的uri接口。The storage medium according to claim 19, wherein the data interface of the preset type network protocol is a uri interface of http.
PCT/CN2018/076109 2017-12-28 2018-02-10 Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium WO2019127864A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711458087.7A CN108255513B (en) 2017-12-28 2017-12-28 Electronic device, springmvc-based data interface, automatic generation method of description of springmvc-based data interface, and storage medium
CN201711458087.7 2017-12-28

Publications (1)

Publication Number Publication Date
WO2019127864A1 true WO2019127864A1 (en) 2019-07-04

Family

ID=62724299

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/076109 WO2019127864A1 (en) 2017-12-28 2018-02-10 Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium

Country Status (2)

Country Link
CN (1) CN108255513B (en)
WO (1) WO2019127864A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201229A (en) * 2021-11-04 2022-03-18 智新控制***有限公司 LIN configuration code automatic generation method, system and computer readable storage medium
CN115470152A (en) * 2022-11-02 2022-12-13 平安银行股份有限公司 Test code generation method, test code generation device, and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704200A (en) * 2018-07-09 2020-01-17 北京京东尚科信息技术有限公司 Method and device for converting call interface
CN109558460A (en) * 2018-10-09 2019-04-02 中国平安人寿保险股份有限公司 Interface managerial method, device, electronic equipment and storage medium based on big data
CN109491708A (en) * 2018-11-21 2019-03-19 北京锐安科技有限公司 Document structure tree method, system, equipment and medium
CN112861059A (en) * 2021-03-17 2021-05-28 平安消费金融有限公司 Visual component generation method and device, computer equipment and readable storage medium
CN114637554A (en) * 2022-03-18 2022-06-17 中国建设银行股份有限公司 Interface calling method, device, equipment and storage medium
CN116342343A (en) * 2023-05-31 2023-06-27 创而新(北京)教育科技有限公司 Data-driven extensible online education platform processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843609A (en) * 2016-03-18 2016-08-10 浪潮软件集团有限公司 MVC frame based on Spring and MyBatis
CN107239271A (en) * 2016-03-29 2017-10-10 滴滴(中国)科技有限公司 Develop document structure tree method and device
CN107342992A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 A kind of System right management method, apparatus and computer-readable recording medium
US20170329693A1 (en) * 2016-05-12 2017-11-16 Synopsys, Inc. Systems and methods for incremental analysis of software
CN107515771A (en) * 2017-09-07 2017-12-26 蓝海天网科技有限公司 API document structure tree method and system based on SpringMVC

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236491B (en) * 2007-01-29 2010-05-19 联芯科技有限公司 Method and system for constructing dynamic component
US8819629B2 (en) * 2010-02-17 2014-08-26 Red Hat, Inc. Automatically generating documentation on application programming interfaces
CN103049271B (en) * 2012-12-27 2016-01-27 微梦创科网络科技(中国)有限公司 The method and apparatus of the description document of automatic generation api interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843609A (en) * 2016-03-18 2016-08-10 浪潮软件集团有限公司 MVC frame based on Spring and MyBatis
CN107239271A (en) * 2016-03-29 2017-10-10 滴滴(中国)科技有限公司 Develop document structure tree method and device
US20170329693A1 (en) * 2016-05-12 2017-11-16 Synopsys, Inc. Systems and methods for incremental analysis of software
CN107342992A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 A kind of System right management method, apparatus and computer-readable recording medium
CN107515771A (en) * 2017-09-07 2017-12-26 蓝海天网科技有限公司 API document structure tree method and system based on SpringMVC

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201229A (en) * 2021-11-04 2022-03-18 智新控制***有限公司 LIN configuration code automatic generation method, system and computer readable storage medium
CN114201229B (en) * 2021-11-04 2024-04-05 智新控制***有限公司 LIN configuration code automatic generation method, system and computer readable storage medium
CN115470152A (en) * 2022-11-02 2022-12-13 平安银行股份有限公司 Test code generation method, test code generation device, and storage medium

Also Published As

Publication number Publication date
CN108255513A (en) 2018-07-06
CN108255513B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
WO2019127864A1 (en) Electronic device, springmvc-based data interface and automatic description generation method therefor, and storage medium
US9971754B2 (en) Method for associating third party content with online document signing
WO2017114182A1 (en) Interface data displaying method and device
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
CN107256256B (en) Local storage connected to networked storage system
WO2019148722A1 (en) Electronic device, data migrating and calling method and storage medium
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
WO2019179027A1 (en) Electronic device, firewall provisioning verification method, system and storage medium
US9330198B1 (en) Mapping stored client data to requested data using metadata
WO2016107465A1 (en) Method, device, and system for implementing card-type desktop
CN104704468A (en) Cross system installation of WEB applications
US11004054B2 (en) Updating account data for multiple account providers
CN115795211A (en) Page display method, device, system, equipment and storage medium
WO2019140829A1 (en) Electronic device, method for releasing application update version, and storage medium
CN111443992B (en) Docker mirror image difference derivation method, computer storage medium and electronic device
WO2023246486A1 (en) Method and apparatus for creating connector
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker
CN108566293B (en) Electronic device, zk node information notification method, and storage medium
CN114510908A (en) Data export method and device, computer equipment and storage medium
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN115114280A (en) Report generation processing method, device and equipment
CN110602655B (en) Short message-based equipment communication address modification method and device and readable storage medium
US20080320120A1 (en) Apparatus and method for visualization of web services distributed management (wsdm) resources
CN114201240B (en) Method and device for configuring helm chart
WO2019085353A1 (en) Test case migration terminal, test case migration method, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18893788

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18893788

Country of ref document: EP

Kind code of ref document: A1