A method for code switching using a specific label

A code and label technology, applied in the direction of program code adaptation, creation/generation of source code, software maintenance/management, etc., can solve complex problems, reduce code modification costs, and reduce online risks

Active Publication Date: 2021-07-27
挖财网络技术有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this solution is suitable for branch management. Although the function is powerful, it is more complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for code switching using a specific label
  • A method for code switching using a specific label

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0020] Such as figure 1 A method for code switching using a specific label is shown, which is characterized in that it includes:

[0021] S1. The user selects the code in the IDE tool; after the code is selected, the file name where the code fragment is located and the specific content of the code fragment are obtained. The acquisition method is the same as that of current mainstream IDEs to obtain file information and content.

[0022] S2. Save the code fragment selected in step S1 with a label of "debugging a1", and save the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention relates to a method for code switching by using a specific label, including: S1, the user selects the code in an IDE or similar related tools; S2, saves the code fragment with the label "debug a1", and obtains the code fragment , save as an independent file, the file name is the MD5 value of the code fragment; S3, modify the code; S4, select the modified code fragment; S5, save the modified code fragment in S4 as "online a2"; save , it is necessary to save the mapping relationship between "debug a1" and "online a2" in the database; S6, select the code to be switched, and the system needs to obtain the corresponding code fragment according to the mapping relationship of the MD5 value of the switched code . The present invention provides a method for realizing free switching of codes in different environments by marking the codes specifically, so as to reduce the cost of code modification between different environments and reduce the risk of going online.

Description

technical field [0001] The invention relates to a method for code switching by using a specific label. Background technique [0002] For different network environments (test environment, pre-release environment, and online environment) or different business needs, different code fragments are usually required; some are due to different configurations required in different environments, and some are for the convenience of debugging. When developers modify the code in a specific environment and publish it to other environments, they often forget to modify the code into code fragments in the corresponding environment. [0003] Spring Boot: A popular web development framework designed to simplify the initial construction and development process of new Spring applications. The Spring Boot framework provides a way to run different configurations in different environments by allowing the definition of multiple profiles and specifying the corresponding profiles. There are two ways...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/76G06F8/30
CPCG06F8/30G06F8/76
Inventor 李广东
Owner 挖财网络技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products