CN110764818B - Method, device, computer equipment and storage medium for automatically switching Swagger - Google Patents

Method, device, computer equipment and storage medium for automatically switching Swagger Download PDF

Info

Publication number
CN110764818B
CN110764818B CN201911001328.4A CN201911001328A CN110764818B CN 110764818 B CN110764818 B CN 110764818B CN 201911001328 A CN201911001328 A CN 201911001328A CN 110764818 B CN110764818 B CN 110764818B
Authority
CN
China
Prior art keywords
swagger
starting
configuration
value
command
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911001328.4A
Other languages
Chinese (zh)
Other versions
CN110764818A (en
Inventor
刘倍材
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
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 Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN201911001328.4A priority Critical patent/CN110764818B/en
Publication of CN110764818A publication Critical patent/CN110764818A/en
Application granted granted Critical
Publication of CN110764818B publication Critical patent/CN110764818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device, computer equipment and a storage medium for automatically switching Swagger. The method comprises the following steps: if a Jar packet starting command is received, judging whether Swagger is started or not according to the starting command; if the judgment result is that Swagger is started, starting the Swagger while starting the Jar packet; if the judgment result is that the Swagger is not started, the Swagger is kept closed while the Jar packet is started, so that whether the Swagger is started or not can be automatically controlled on the premise that the source code of the Jar packet is not changed, the problem of testing requirement caused by modifying the Jar packet is avoided, a large amount of testing workload is reduced, and resources of enterprises are saved.

Description

Method, device, computer equipment and storage medium for automatically switching Swagger
Technical Field
The invention relates to the technical field of Jar development, in particular to a method, a device, computer equipment and a storage medium for automatically switching Swagger.
Background
In the process of developing and testing the SpringBoot project to release, in order to facilitate debugging of front and back ends, swagger is often introduced, and then explicit use annotation @ EnableSwagger2 on a starting class is started, so that front-end page testing can be performed on the class annotated with @ RestController.
But this has a problem: when the project is deployed in a production environment, in order to avoid the scanning of a request URL at the back end, the page of the Swagger is shielded, and the opening of the Swagger is hard coded in the code, so that the project code has to be repackaged and issued after being modified; the latest package is inconsistent with the package tested before, and has to be retested in order to be able to run properly and stably after deployment to the production environment. This causes waste of resources.
Disclosure of Invention
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for automatically switching Swagger, which aim to solve the problem of test resource waste caused by the need of revising codes of Jar packages when Swagger is closed in the prior art.
In a first aspect, an embodiment of the present invention provides a method of automatically switching Swagger, including:
if a Jar packet starting command is received, judging whether Swagger is started or not according to the starting command;
if the judgment result is that Swagger is started, starting the Swagger while starting the Jar packet;
if the judgment result is that Swagger is not started, starting the Jar packet and keeping the Swagger closed at the same time.
The further technical scheme is that the opening the Swagger while opening the Jar packet includes:
and simultaneously loading the Jar package and the resources of the Swagger into a preset Spring container.
The further technical solution is that the opening the Jar packet while keeping the Swagger closed includes:
and loading the Jar package into a preset Spring container.
The further technical scheme is that the starting command includes a starting configuration of the Swagger, the value of the starting configuration is a first preset value or a second preset value, and the judging whether to start the Swagger according to the starting command includes:
judging whether the value of the starting configuration of the Swagger in the starting command is the first preset value or not;
and if the value of the starting configuration of the Swagger in the starting command is the first preset value, judging to start the Swagger.
According to a further technical scheme, the method for judging whether Swagger is started according to the starting command further comprises the following steps:
and if the value of the starting configuration of the Swagger in the starting command is the second preset value, judging that the Swagger is not started.
In a second aspect, embodiments of the present invention also provide an apparatus for automatically switching Swagger, which includes:
the first judging unit is used for judging whether the Swagger is started or not according to the starting command if the Jar packet starting command is received;
the first opening unit is used for opening the Swagger while opening the Jar packet if the judgment result is that the Swagger is opened;
and the second opening unit is used for keeping the Swagger closed while opening the Jar packet if the judgment result is that the Swagger is not opened.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for automatically switching Swagger. Wherein the method comprises the following steps: if a Jar packet starting command is received, judging whether Swagger is started or not according to the starting command; if the judgment result is that Swagger is started, starting the Swagger while starting the Jar packet; if the judgment result is that the Swagger is not started, the Swagger is kept closed while the Jar packet is started, so that whether the Swagger is started or not can be automatically controlled on the premise that the source code of the Jar packet is not changed, the problem of testing requirement caused by modifying the Jar packet is avoided, a large amount of testing workload is reduced, and resources of enterprises are saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for automatically switching Swagger according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for automatically switching Swagger according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of an apparatus for automatically switching Swagger according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a first opening unit of an apparatus for automatically switching Swagger according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a second opening unit of an apparatus for automatically switching Swagger according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a first judging unit of an apparatus for automatically switching Swagger according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1, fig. 1 is a flow chart of a method for automatically switching Swagger according to an embodiment of the invention. As shown, the method includes the following steps S1-S3.
S1, if a Jar packet starting command is received, judging whether Swagger is started or not according to the starting command.
In order to avoid the back-end request URL being scanned when the project is deployed to the production environment, the page of Swagger needs to be masked. Therefore, in the embodiment of the present invention, if a Jar packet start command is received, it is determined whether to start Swagger according to the start command. If the method is in the development process, swagger needs to be started; if in the production process, there is no need to turn on Swagger. Note that Swagger is a REST APIs document generation tool.
Referring to fig. 2, in an embodiment, the start command includes a start configuration of the Swagger, where a value of the start configuration is a first preset value or a second preset value, and step S1 above specifically includes steps S11 to S13 below.
S11, judging whether the value of the starting configuration of the Swagger in the starting command is the first preset value.
In this embodiment, with respect to the existing problem used by Swagger, the function of the Jar packet annotation @ EnableSwagger2 is rewritten, and switching control of Swagger in the application @ EnableSwagger2 properties is implemented.
In specific implementation, a swagger properties configuration class is added in a starting command of the Jar packet, a starting configuration swagger.enabled is provided, and if the starting configuration swagger.enabled=true (a first preset value) is the starting swagger; if the startup configuration swgger.enabled=false (second preset value) is the shutdown swgger.
Therefore, it is determined whether or not the value of the startup configuration (swagger.enabled) of the startup command is the first preset value.
S12, if the value of the starting configuration of the Swagger in the starting command is the first preset value, judging to start the Swagger.
In a specific implementation, if the value of the starting configuration of the Swagger in the starting command is the first preset value, the Swagger is judged to be started.
Thus, when Jar is developed, the Swagger can be started only by setting the value of the starting configuration of the Swagger in the starting command to be the first preset value
S13, if the value of the starting configuration of the Swagger in the starting command is the second preset value, judging that the Swagger is not started.
In a specific implementation, if the value of the starting configuration of the Swagger in the starting command is the second preset value, it is determined that the Swagger is not started.
Therefore, during production, the Swagger can be closed only by setting the value of the starting configuration of the Swagger in the starting command to be the second preset value, and the code of the Jar packet is not required to be modified, so that test resources are greatly saved.
S2, if the judgment result is that Swagger is started, starting the Jar packet and simultaneously starting the Swagger.
In specific implementation, if the judgment result is that Swagger is started, starting the Jar packet and simultaneously starting the Swagger.
In one embodiment, the step S2 is specifically: and simultaneously loading the Jar package and the resources of the Swagger into a preset Spring container, so that the Swagger is started while the Jar package is started.
And S3, if the judgment result is that the Swagger is not started, starting the Jar packet and keeping the Swagger closed at the same time.
In specific implementation, if the judgment result is that the Swagger is not started, the Jar packet is started while the Swagger is kept closed.
In one embodiment, the step S3 is specifically: and loading the Jar package into a preset Spring container, so that the Jar package is opened and the Swagger is kept closed.
The embodiment of the invention provides a method for automatically switching Swagger, which judges whether to start the Swagger or not according to a starting command if the starting command of a Jar packet is received; if the judgment result is that Swagger is started, starting the Swagger while starting the Jar packet; if the judgment result is that the Swagger is not started, the Swagger is kept closed while the Jar packet is started, so that whether the Swagger is started or not can be automatically controlled on the premise that the source code of the Jar packet is not changed, the problem of testing requirement caused by modifying the Jar packet is avoided, a large amount of testing workload is reduced, and resources of enterprises are saved.
Fig. 3 is a schematic block diagram of an apparatus 70 for automatically switching Swagger according to an embodiment of the present invention. As shown in fig. 3, the present invention also provides an apparatus 70 for automatically switching Swagger, corresponding to the above method for automatically switching Swagger. The automatic switching Swagger apparatus 70 includes means for performing the above-described method of automatic switching Swagger, which may be configured in a desktop computer, tablet computer, laptop computer, or the like. Specifically, referring to fig. 3, the apparatus 70 for automatically switching Swagger includes a first judging unit 71, a first opening unit 72, and a second opening unit 73.
A first judging unit 71, configured to judge whether to turn on Swagger according to a Jar packet start command if the Jar packet start command is received;
a first opening unit 72, configured to open the Swagger while opening the Jar packet if the determination result is that the Swagger is opened;
and a second opening unit 73, configured to keep closing the Swagger while opening the Jar packet if the judgment result is that the Swagger is not opened.
In one embodiment, as shown in fig. 4, the first opening unit 72 includes a first loading unit 721.
And a first loading unit 721, configured to load the Jar packet and the resource of the Swagger into a preset Spring container at the same time.
In one embodiment, as shown in fig. 5, the second opening unit 73 includes a second loading unit 731.
And the second loading unit 731 is configured to load the Jar packet only into a preset Spring container.
In an embodiment, the start command includes a start configuration of the Swagger, where the value of the start configuration is a first preset value or a second preset value, as shown in fig. 6, and the first determining unit 71 includes a second determining unit 711, a first determining unit 712, and a second determining unit 713.
A second judging unit 711 for judging whether the value of the start configuration of Swagger in the start command is the first preset value.
A first determining unit 712, configured to determine to turn on the Swagger if the value of the start configuration of the Swagger in the start command is the first preset value.
And a second determination unit 713 configured to determine not to turn on the Swagger if the value of the start configuration of the Swagger in the start command is the second preset value.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the device 70 and each unit of the automatic switch Swagger may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
The means 70 of automatically switching Swagger described above may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal, where the terminal may be an electronic device having a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster formed by a plurality of servers.
With reference to FIG. 7, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a method of automatically switching Swagger.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method of automatically switching Swagger.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 500 to which the present application is applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
if a Jar packet starting command is received, judging whether Swagger is started or not according to the starting command;
if the judgment result is that Swagger is started, starting the Swagger while starting the Jar packet;
if the judgment result is that Swagger is not started, starting the Jar packet and keeping the Swagger closed at the same time.
In one embodiment, when the processor 502 implements the step of opening the Swagger while opening the Jar packet, the following steps are specifically implemented:
and simultaneously loading the Jar package and the resources of the Swagger into a preset Spring container.
In one embodiment, when the processor 502 implements the step of keeping the Swagger closed while opening the Jar packet, the following steps are specifically implemented:
and loading the Jar package into a preset Spring container.
In an embodiment, the start command includes a start configuration of the Swagger, where a value of the start configuration is a first preset value or a second preset value, and when the step of determining whether to start the Swagger according to the start command is implemented by the processor 502, the following steps are specifically implemented:
judging whether the value of the starting configuration of the Swagger in the starting command is the first preset value or not;
if the value of the starting configuration of the Swagger in the starting command is the first preset value, judging to start the Swagger;
and if the value of the starting configuration of the Swagger in the starting command is the second preset value, judging that the Swagger is not started.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of:
if a Jar packet starting command is received, judging whether Swagger is started or not according to the starting command;
if the judgment result is that Swagger is started, starting the Swagger while starting the Jar packet;
if the judgment result is that Swagger is not started, starting the Jar packet and keeping the Swagger closed at the same time.
In one embodiment, when the processor executes the computer program to implement the step of opening the Swagger while opening the Jar packet, the steps are specifically implemented as follows:
and simultaneously loading the Jar package and the resources of the Swagger into a preset Spring container.
In one embodiment, when the processor executes the computer program to implement the step of keeping the Swagger closed while opening the Jar packet, the steps are specifically implemented as follows:
and loading the Jar package into a preset Spring container.
In an embodiment, the start command includes a start configuration of the Swagger, where a value of the start configuration is a first preset value or a second preset value, and when the processor executes the computer program to implement the step of determining whether to start the Swagger according to the start command, the specific implementation steps include:
judging whether the value of the starting configuration of the Swagger in the starting command is the first preset value or not;
if the value of the starting configuration of the Swagger in the starting command is the first preset value, judging to start the Swagger;
and if the value of the starting configuration of the Swagger in the starting command is the second preset value, judging that the Swagger is not started.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (4)

1. A method of automatically switching Swagger comprising:
if a Jar packet starting command is received, judging whether the value of the starting configuration of the Swagger in the starting command is a first preset value, wherein the starting command comprises the starting configuration of the Swagger, and the value of the starting configuration is the first preset value or a second preset value; adding a Swagger properties configuration class to the start command of the Jar packet to provide a start configuration swagger.enabled, wherein the annotation @ EnableSwagger2 function of the Jar packet is rewritten to perform switch control on the Swagger in the application of the annotation @ EnableSwagger 2;
if the value of the starting configuration of the Swagger in the starting command is the first preset value, judging to start the Swagger;
if the value of the starting configuration of the Swagger in the starting command is the second preset value, judging that the Swagger is not started;
if the judgment result is that Swagger is started, and the SpringBoot project is judged to be in the development process, starting the Swagger while starting the Jar package, and loading the Jar package and the resources of the Swagger into a preset Spring container;
if the judgment result is that Swagger is not started, and the SpringBoot item is judged to be in the production process, the Jar package is started and kept closed at the same time, and only the Jar package is loaded into a preset Spring container.
2. An apparatus for automatically switching Swagger, comprising:
the second judging unit is used for judging whether the value of the starting configuration of the Swagger in the starting command is a first preset value or not if a Jar packet starting command is received, wherein the starting command comprises the starting configuration of the Swagger, and the value of the starting configuration is the first preset value or a second preset value; adding a Swagger properties configuration class to the start command of the Jar packet to provide a start configuration swagger.enabled, wherein the annotation @ EnableSwagger2 function of the Jar packet is rewritten to perform switch control on the Swagger in the application of the annotation @ EnableSwagger 2;
a first determining unit, configured to determine to turn on the Swagger if a value of a startup configuration of the Swagger in the startup command is the first preset value;
a second determining unit, configured to determine not to turn on the Swagger if the value of the start configuration of the Swagger in the start command is the second preset value;
the first opening unit is used for opening the Swagger while opening the Jar package if the judgment result is that the Swagger is opened and judging that the SpringBoot project is in the development process, and loading the Jar package and the resources of the Swagger into a preset Spring container;
and the second opening unit is used for judging that the SpringBoot item is in the production process if the judgment result is that the Swagger is not opened, opening the Jar packet and keeping closing the Swagger at the same time, and only loading the Jar packet into a preset Spring container.
3. A computer device comprising a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method of claim 1 when executing the computer program.
4. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of claim 1.
CN201911001328.4A 2019-10-21 2019-10-21 Method, device, computer equipment and storage medium for automatically switching Swagger Active CN110764818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911001328.4A CN110764818B (en) 2019-10-21 2019-10-21 Method, device, computer equipment and storage medium for automatically switching Swagger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911001328.4A CN110764818B (en) 2019-10-21 2019-10-21 Method, device, computer equipment and storage medium for automatically switching Swagger

Publications (2)

Publication Number Publication Date
CN110764818A CN110764818A (en) 2020-02-07
CN110764818B true CN110764818B (en) 2024-03-29

Family

ID=69331517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911001328.4A Active CN110764818B (en) 2019-10-21 2019-10-21 Method, device, computer equipment and storage medium for automatically switching Swagger

Country Status (1)

Country Link
CN (1) CN110764818B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140004301A (en) * 2012-07-02 2014-01-13 주식회사 유코스텍 Auto control type temperature control apparatus
CN109361811A (en) * 2018-09-05 2019-02-19 深圳市万普拉斯科技有限公司 Functional mode control method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9439653B2 (en) * 2011-12-07 2016-09-13 Traumatek Solutions B.V. Devices and methods for endovascular access and therapy

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140004301A (en) * 2012-07-02 2014-01-13 주식회사 유코스텍 Auto control type temperature control apparatus
CN109361811A (en) * 2018-09-05 2019-02-19 深圳市万普拉斯科技有限公司 Functional mode control method, device, computer equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Design and Document APIs Faster with New Open Source Swagger UI and Editor.《 Computers Networks & Communications》.2017,206. *
springboot中swagger快速启动流程法;Purgeyao;《https://www.jb51.net/article/169494.htm》;20190906;1-3 *
佚名.SmartBear Software *
如何实现生产环境关闭swagger,只有开发环境中开启swagger;原创;《http://classinstance.cn/detail/70.html》;20190919;1-6 *

Also Published As

Publication number Publication date
CN110764818A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US9134996B2 (en) Updating anti-virus software
US8438546B2 (en) System and method for mitigating repeated crashes of an application resulting from supplemental code
US8443354B1 (en) Detecting new or modified portions of code
RU2575985C2 (en) Method and apparatus for vetting executable program using model
US9411743B2 (en) Detecting memory corruption
WO2019072008A1 (en) Security scanning method and apparatus for mini program, and electronic device
WO2016078323A1 (en) Malware detection method and apparatus
CN104809045B (en) Running method and device of monitoring script
WO2020177429A1 (en) Method and apparatus for embedding codes in application, and electronic device
CN109582907A (en) Method of calibration, device, equipment and the readable storage medium storing program for executing of web page resources integrality
US20190121985A1 (en) Detecting vulnerabilities in applications during execution
CN109800367A (en) Webpage loading method, device, computer equipment and storage medium
CN109634641B (en) Application program updating method and device, electronic equipment and medium
CN112698867A (en) Method and device for dynamically modifying annotation information, electronic equipment and medium
CN110704311B (en) Application program testing method and device, electronic equipment and readable storage medium
CN111444453A (en) Page return data processing method and device
CN109408265B (en) IOS abnormal operation protection method and device, terminal equipment and storage medium
CN110764818B (en) Method, device, computer equipment and storage medium for automatically switching Swagger
US10063558B2 (en) Method for blocking unauthorized data access and computing device with feature of blocking unauthorized data access
CN106295371B (en) Using operation method, file reinforcement means and device
US8627305B1 (en) System, method, and computer program product for hooking code inserted into an address space of a new process
US8762953B2 (en) Exception-based error handling in an array-based language
CN110442380B (en) Data preheating method and computing equipment
CN112052447A (en) Isolation method, device, terminal and storage medium for software development kit
US20210382764A1 (en) Comparisons of application programming interface interactions to determine compatibilities

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant