WO2021174756A1 - Application system deployment method and apparatus, and computer device and storage medium - Google Patents

Application system deployment method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2021174756A1
WO2021174756A1 PCT/CN2020/105044 CN2020105044W WO2021174756A1 WO 2021174756 A1 WO2021174756 A1 WO 2021174756A1 CN 2020105044 W CN2020105044 W CN 2020105044W WO 2021174756 A1 WO2021174756 A1 WO 2021174756A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
information
placeholder
master
template
Prior art date
Application number
PCT/CN2020/105044
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 WO2021174756A1 publication Critical patent/WO2021174756A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Definitions

  • This application relates to the field of cloud deployment technology, and in particular to an application system deployment method, device, computer equipment, and storage medium.
  • the inventor realizes that in this type of application system, different application systems are traditionally completed by using different deployment methods, but for enterprises, there is often a need for rapid deployment of application systems.
  • the traditional method will cause deployment The efficiency is low, and during the deployment process, application conflicts may be caused because a server needs to host multiple different application environments.
  • the embodiments of the present application provide an application system deployment method, device, computer equipment, and storage medium to solve the problem of low application system deployment efficiency.
  • An application system deployment method including:
  • configuration information includes function information, interface information, and authority information
  • Parse the authority information extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template
  • Acquiring preset functional interface configuration information enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
  • the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  • An application system deployment device including:
  • the first obtaining module is configured to obtain configuration information, where the configuration information includes function information, interface information, and authority information;
  • the second obtaining module is configured to obtain a permission master and an interface master from a database, the permission master includes a first placeholder, and the interface master includes a second placeholder;
  • the first parsing module is used to parse the authority information, extract a first replacement field from the authority information, and use the first replacement field to replace the first placeholder in the authority master to obtain the authority template ;
  • the second analysis module is configured to analyze the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template ;
  • the third acquisition module is configured to acquire preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the functional information, to obtain an interface template, and the target interface is required for realizing the functional information Called interface;
  • the command response module is used to respond to the container start command, run the permission template, interface template, and interface template in the application container engine, and deploy the application system.
  • a computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions:
  • configuration information includes function information, interface information, and authority information
  • Parse the authority information extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template
  • Acquiring preset functional interface configuration information enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
  • the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  • One or more readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
  • configuration information includes function information, interface information, and authority information
  • Parse the authority information extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template
  • Acquiring preset functional interface configuration information enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
  • the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  • configuration information is obtained by obtaining configuration information, which includes function information, interface information, and authority information; the authority master and interface master are obtained from the database, and the authority master
  • the version includes a first placeholder, and the interface master includes a second placeholder; the authority information is parsed, the first replacement field is extracted from the authority information, and the first replacement field is used to replace the authority
  • the first placeholder in the master is obtained, and the permission template is obtained; the interface information is parsed, the second replacement field is extracted from the interface information, and the second replacement field is used to replace the second in the interface master.
  • Placeholder to obtain an interface template obtain preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the function information, to obtain an interface template, and the target interface is a place that implements the function information
  • the interface that needs to be called; in response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  • the first placeholder in the reserved permission master and the second placeholder in the interface master allows users to make customized changes according to different requirements for permissions and interfaces, so as to determine the permission initialization of each user And the interface is initialized, and the interface needed in the back-end application is determined according to the user’s functional requirements, which realizes the freedom of function, uses the template and container technology to deploy the application system, improves the deployment speed of the application system, and realizes a short time Quickly deploy multiple application systems.
  • FIG. 1 is a schematic diagram of an application environment of an application system deployment method in an embodiment of the present application
  • Fig. 2 is a flowchart of an application system deployment method in an embodiment of the present application
  • FIG. 3 is another flowchart of the application system deployment method in an embodiment of the present application.
  • FIG. 4 is another flowchart of the application system deployment method in an embodiment of the present application.
  • FIG. 5 is another flowchart of the application system deployment method in an embodiment of the present application.
  • Fig. 6 is a functional block diagram of an application system deployment device in an embodiment of the present application.
  • FIG. 7 is another functional block diagram of the application system deployment device in an embodiment of the present application.
  • FIG. 8 is another functional block diagram of the application system deployment device in an embodiment of the present application.
  • FIG. 9 is another functional block diagram of the application system deployment device in an embodiment of the present application.
  • Fig. 10 is a schematic diagram of a computer device in an embodiment of the present application.
  • the application system deployment method provided by the embodiment of the present application can be applied to the application environment as shown in FIG. 1.
  • the application system deployment method is applied in an application system deployment system.
  • the application system deployment system includes a client and a server as shown in FIG. .
  • the client is also called the client, which refers to the program that corresponds to the server and provides local services to the client.
  • the client can be installed on, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • an application system deployment method is provided.
  • the method is applied to the server in FIG. 1 as an example for description, including the following steps:
  • S11 Acquire configuration information, where the configuration information includes function information, interface information, and authority information.
  • the configuration information is information for configuring the requirements of the application system, and the configuration information may be determined according to the requirements of the user, or may be determined according to the default configuration of the application system.
  • the configuration information includes function information, interface information, and authority information.
  • the function information is information required by functions in the application system.
  • the function information may be function information such as sending information, receiving information, and storing information in the application system.
  • the interface information is front-end UI interface information in the application system.
  • the interface information may include other information such as the style of the interface, the LOGO of the interface, or the page size of the interface.
  • the authority information is authority information for the user to log in to the system.
  • the authority information may include: user name, user number, user password, or authority validity period of the user account, and other information.
  • the user can edit the configuration information in the configuration file through the client interface. After the user fills in and saves the configuration information, the server will obtain the configuration information by reading the configuration file.
  • S12 Obtain an authority master and an interface master from the database, where the authority master includes a first placeholder, and the interface master includes a second placeholder.
  • the authority master is a basic master that can be used to generate a complete authority template based on different authority information
  • the authority master can be multiple SQL statements (Structured Query Language (Structured Query Language) consists of a master sentence file, and the permission master contains basic sentences related to permission information.
  • the first placeholder is a SQL statement reserved in the authority master, and the first placeholder is a personalized field used to reserve the authority information in the authority master.
  • the first placeholder may be an SQL statement of other authority information such as the name, number, password, or authority validity period in the authority information.
  • the interface master is a basic master that can be used to generate a complete interface template according to different interface information
  • the interface master may be html (Hypertext Marked Language (Hypertext Markup Language) files.
  • the second placeholder is an html sentence reserved in the interface master, and the second placeholder is a customized field used to reserve the interface information in the interface master.
  • the customized field may be embodied as interface fixed value information such as logo, slogan, or interface style.
  • the first replacement field refers to a field in the permission information corresponding to the first placeholder in the permission master.
  • the permission template is a template generated after replacing the first placeholder in the permission master according to the first replacement field.
  • the server After the server obtains the permission information from the configuration file, it reads the permission information, identifies and extracts the first replacement field in the permission information, and replaces the true value in the first replacement field. The value is replaced with the value in the first placeholder to generate a permission template.
  • the second replacement field refers to a field in the interface information corresponding to the second placeholder in the interface master.
  • the interface template is a template generated after replacing the second placeholder in the authority master according to the second replacement field.
  • the server obtains the interface information from the configuration file, it reads the interface information, recognizes and extracts the second replacement field in the interface information, and replaces the true value in the second replacement field.
  • the value is replaced with the value in the second placeholder to generate an interface template.
  • S15 Obtain preset function interface configuration information, enable the target interface in the function interface configuration information according to the function information, and obtain an interface template, where the target interface is an interface that needs to be called to implement the function information.
  • the preset functional interface configuration information refers to all functional interfaces in the back-end application of the application system. Specifically, all the functional interfaces are obtained from the back-end applications of the application system, and the interfaces that need to be called in the functional information are extracted as the target interfaces according to the functional information, and the interfaces that do not need to be called in the functional information are shielded, and The extracted target interface is used as an interface template.
  • the container start command is a command to start an application container engine
  • the application container engine may be an application container engine (docker)
  • the application container engine may be used to carry multiple middleware.
  • the middleware includes: Operation container, database entity, message middleware, load balancing device, etc.
  • the operation container includes an interface container and a function container
  • the database entity includes a permission container.
  • the start command starts the application container engine, runs the permission template, interface template, and interface template in the application container engine, and further, runs the permission template in the permission container Deploy the database, run the interface template in the interface container, deploy the front-end interface, run the interface template in the function container, deploy the back-end application, and deploy the application system according to the database, front-end interface and back-end application .
  • the configuration information includes function information, interface information, and authority information; the authority master and interface master are obtained from the database, and the authority master includes the first placeholder, so The interface master includes a second placeholder; the authority information is parsed, a first replacement field is extracted from the authority information, and the first replacement field is used to replace the first placeholder in the authority master , Obtain a permission template; parse the interface information, extract a second replacement field from the interface information, and use the second replacement field to replace the second placeholder in the interface master to obtain the interface template; Preset function interface configuration information, enable the target interface in the function interface configuration information according to the function information to obtain an interface template, where the target interface is an interface that needs to be called to implement the function information; respond to a container start command , Run the permission template, interface template, and interface template in the application container engine to deploy the application system.
  • the first placeholder in the reserved permission master and the second placeholder in the interface master allows users to make customized changes according to different requirements for permissions and interfaces, so as to determine the permission initialization of each user And the interface is initialized, and the interface needed in the back-end application is determined according to the user’s functional requirements, which realizes the freedom of function, uses the template and container technology to deploy the application system, improves the deployment speed of the application system, and realizes a short time Quickly deploy multiple application systems.
  • the authority information is parsed, a first replacement field is extracted from the authority information, and the first replacement field is used to replace the first in the authority master.
  • Placeholder, get permission template including:
  • the server After the server obtains the authority information from the configuration file, it performs a reading operation on the authority information to identify and extract the first replacement field.
  • S132 Extract the first placeholder of the authority master, and generate a first placeholder SQL statement.
  • the first placeholder in the authority master is set in the authority master according to the first functional requirement. middle.
  • the authority master is obtained from a database
  • the first placeholder in the authority master is extracted
  • a first placeholder SQL statement is generated according to the first placeholder
  • the first placeholder is
  • the placeholder SQL statement is a statement for the first replacement field to replace the value of the first placeholder.
  • the server sets the first placeholder in the authority master according to the first functional requirement.
  • the first functional requirement refers to the database permissions set by the user and the value of the first placeholder corresponding to the database permissions.
  • a placeholder SQL statement is: insert limitable (id, limittime) values ( ⁇ id1 ⁇ , ⁇ limittime1 ⁇ ).
  • S133 Input the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the authority master.
  • the server obtains the authority information from the configuration file, it reads the authority information, identifies and extracts the first replacement field, obtains the authority master from the database, and extracts the authority information.
  • the first placeholder in the permission master, and a first placeholder SQL statement is generated according to the first placeholder, and the real value of the first replacement field is input into the first placeholder SQL statement , Replace the value of the first placeholder in the permission master.
  • the SQL statement obtained by the first placeholder is: insert limitable (id, limittime) values ( ⁇ 002 ⁇ , ⁇ 2020-10-31 ⁇ ).
  • the first placeholder is used to control SQL statements, and corresponding templates can be generated according to different authority requirements of users.
  • the difficulty of SQL statement analysis is reduced, and the speed of generating system permissions for different users is improved.
  • the interface information is parsed, a second replacement field is extracted from the interface information, and the second replacement field is used to replace the second replacement field in the interface master.
  • Placeholder get the interface template, including:
  • the server After the server obtains the interface information from the configuration file, it performs a reading operation on the interface information to identify and extract the second replacement field.
  • S142 Extract the second placeholder of the interface master, and generate a second placeholder html code, where the second placeholder in the interface master is set according to the second functional requirement.
  • the interface master is obtained from the database, the second placeholder in the interface master is extracted, and a second placeholder html sentence is generated according to the second placeholder, and the second placeholder is
  • the placeholder html sentence is a sentence for the second replacement field to replace the value of the second placeholder.
  • the server sets the second placeholder in the interface master according to the second functional requirement.
  • the second functional requirement refers to the interface element set by the user and the value of the second placeholder corresponding to the interface element.
  • the server obtains the interface information from the configuration file, it reads the interface information, identifies and extracts the second replacement field, obtains the interface master from the database, and extracts all the interface information.
  • the second placeholder in the interface master and generate a second placeholder html sentence according to the second placeholder, and input the real value of the second replacement field into the second placeholder html In the sentence, replace the value of the second placeholder in the interface master.
  • the actual value of the second replacement field is a specific element that replaces the value of the second placeholder in the second replacement field.
  • the second placeholder is a placeholder with a pointing property
  • the pointing file needs to be placed in a designated position first, wherein the placeholder with a pointing property can be understood Is a hyperlink in the html code.
  • ⁇ logo1 ⁇ is a placeholder with a pointing nature
  • set logo1 ./jpg/logo1.jpg
  • the second placeholder is used to control the html code of the interface, and the corresponding interface can be generated according to different user interface requirements. Templates, on the premise of ensuring that the user system interface is customized, can complete multiple different front-end interfaces at a relatively small cost.
  • the target interface is for realizing the function
  • the interface that the information needs to call includes:
  • S151 Obtain preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application.
  • the preset functional interface configuration information is all functional interfaces in the back-end application, and the preset functional interface configuration information includes the interfaces that the back-end application needs to call.
  • the target interface is an interface that needs to be called to realize the function information.
  • the server obtains the functional information from the configuration file, reads the functional information, and obtains the interface that the back-end application needs to call in the functional information, that is, the target interface, The server extracts the target interface from the preset functional interface configuration information, and activates the target interface.
  • the server since the preset function interface configuration information includes the target interface and the interface that does not need to be called in the function information, the server will block the function information after calling the target interface. No need to call the interface.
  • the method of shielding the interface that does not need to be called in the function information is: removing the interface that does not need to be called in the function information from the whitelist of the unified gateway of the application.
  • the unified gateway refers to Yes, the component that exposes the application interface is used to control the whitelist, that is, only the application interfaces in the whitelist are exposed.
  • the whitelist refers to the whitelist that controls the externally exposed application interfaces, that is, only the application interfaces in the whitelist Will be exposed to the public.
  • the preset functional interface configuration information includes the interface that the back-end application needs to call, and then according to the functional information, in the preset functional interface configuration information , Extract the interface that the function information needs to call, and remove the interface that does not need to be called in the function information from the whitelist of the unified gateway of the application, shield the interface that the function information does not need to call, and improve the back-end application The accuracy of the interface, and avoid the need to modify the operation of the back-end code.
  • running the permission template, interface template, and interface template in the application container engine to deploy the application system includes:
  • an application container engine In response to the container start command, run an application container engine, the application container engine including a permission container, an interface container, and a function container;
  • the container start command is a command to start an application container engine
  • the application container engine may be a docker application container engine
  • the application container engine may be used to carry multiple middleware.
  • the middleware includes: running container , Database entities, message middleware, load balancing equipment, etc.
  • the running container is the running environment when the application is running.
  • the running container includes an interface container and a function container.
  • the interface container and the function container can use a tomcat application server.
  • the database entity includes a permission container, and the permission container can be mySQL. Server, Redis server, oracle server or other database server.
  • the application container engine is run, that is, the permission container, interface container, and function container are run.
  • the application system is deployed according to the database, front-end application, and back-end application.
  • the application system is deployed through the application container engine, which can run middleware of different application environments at the same time, and avoids the conflicts that may be caused by traditionally installing all middleware on the same server, and improves the startup template.
  • the speed of the container by running the permission template, interface template and interface template in the corresponding container, deploying the database, front-end application and back-end application, a complete application system is obtained, enabling users to determine a set of exclusive operating system.
  • an application system deployment device is provided, and the application system deployment device corresponds to the application system deployment method in the above-mentioned embodiment in a one-to-one correspondence.
  • the application system deployment device includes a first acquisition module 11, a second acquisition module 12, a first analysis module 13, a second analysis module 14, a third acquisition module 15 and a command response module 16.
  • the detailed description of each functional module is as follows:
  • the first obtaining module 11 is configured to obtain configuration information, where the configuration information includes function information, interface information, and authority information.
  • the second obtaining module 12 is configured to obtain a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder.
  • the first parsing module 13 is configured to parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain the authority template.
  • the second parsing module 14 is configured to parse the interface information, extract a second replacement field from the interface information, and use the second replacement field to replace the second placeholder in the interface master to obtain the interface template.
  • the third acquiring module 15 is configured to acquire preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the functional information, to obtain an interface template, and the target interface is the implementation of the functional information.
  • the command response module 16 is used to respond to the container start command, run the permission template, interface template, and interface template in the application container engine, and deploy the application system.
  • the first analysis module 13 further includes:
  • the third parsing module 131 is used for parsing the authority information, and extracting the first replacement field from the authority information.
  • the first extraction module 132 is configured to extract the first placeholder of the authority master to generate a first placeholder SQL statement, and the first placeholder in the authority master is set according to the first functional requirement In the permissions master.
  • the first replacement module 133 is configured to input the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the permission master.
  • the second analysis module 14 further includes:
  • the fourth analysis module 141 is configured to analyze the interface information, and extract the second replacement field from the interface information.
  • the second extraction module 142 is configured to extract the second placeholder of the interface master and generate the second placeholder html code, and the second placeholder in the interface master is set according to the second functional requirement .
  • the second replacement module 143 is configured to input the second replacement field into the second placeholder html code, and replace the second placeholder in the interface master.
  • the third acquiring module 15 further includes:
  • the fourth obtaining module 151 is configured to obtain preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application.
  • the interface enabling module 152 is configured to determine and enable the target interface in the preset functional interface configuration information.
  • the interface shielding module 153 is configured to shield the interfaces in the function information that do not need to be called in the preset function interface configuration information.
  • the command response module 16 further includes:
  • the container running module is used to respond to the container start command and run the application container engine.
  • the application container engine includes a permission container, an interface container, and a function container.
  • the first pull module is used to pull the permission template into the permission container to run and deploy the database.
  • the second pull module is used to pull the interface template into the interface container to run, and deploy the front-end application.
  • the third pull module is used to pull the interface template into the function container to run, and deploy back-end applications.
  • the system deployment module is used to deploy the application system according to the database, front-end application and back-end application.
  • Each module in the above-mentioned application system deployment device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 10.
  • the computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes computer readable instructions and internal memory.
  • the computer readable instructions are stored with an operating system, computer readable instructions and a database.
  • the internal memory provides an environment for the operation of the operating system and the computer-readable instructions in the computer-readable instructions.
  • the database of the computer equipment is used for the data used in the above application system deployment method.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by the processor to implement an application system deployment method.
  • the readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
  • a computer device including a memory, a processor, and computer-readable instructions stored in the memory and running on the processor.
  • the processor executes the computer-readable instructions to implement the application in the above-mentioned embodiment. System deployment method.
  • one or more readable storage media storing computer readable instructions are provided.
  • the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage. Medium; the readable storage medium stores computer readable instructions, and when the computer readable instructions are executed by one or more processors, the one or more processors implement the application system deployment method in the above-mentioned embodiment.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the technical field of cloud deployment. Disclosed are an application system deployment method and apparatus, and a computer device and a storage medium. The method comprises: obtaining functional information, interface information, and permission information; obtaining a permission master and an interface master from a database; extracting a first replacement field from the permission information, and replacing a first placeholder in the permission master with the first replacement field to obtain a permission template; extracting a second replacement field from the interface information, and replacing a second placeholder in the interface master with the second replacement field to obtain an interface template; obtaining preset functional interface configuration information, and enabling a target interface in the functional interface configuration information according to the functional information to obtain an interface template; and running the permission template, the interface template, and the interface template in an application container engine to deploy application systems. Deployment of application systems using template and container technology increases the speed of deploying application systems and implements rapid deployment of multiple application systems in a short time.

Description

应用系统部署方法、装置、计算机设备及存储介质Application system deployment method, device, computer equipment and storage medium
本申请要求于2020年3月4日提交中国专利局、申请号为202010142986.1,发明名称为“应用系统部署方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on March 4, 2020, the application number is 202010142986.1, and the invention title is "application system deployment method, device, computer equipment and storage medium", the entire content of which is incorporated by reference Incorporated in this application.
 To
技术领域Technical field
本申请涉及云部署技术领域,尤其涉及一种应用系统部署方法、装置、计算机设备及存储介质。This application relates to the field of cloud deployment technology, and in particular to an application system deployment method, device, computer equipment, and storage medium.
 To
背景技术Background technique
随着互联网的快速发展,对每个企业来说都会在应用系统有独特的部署涉及,大部分应用系统部署方法上采用的核心技术是相同的,只是当每个应用系统的需求不同时,常常需要应用系统中的设计进行更改。With the rapid development of the Internet, each enterprise will have a unique deployment of application systems. The core technology used in most application system deployment methods is the same, but when the needs of each application system are different, often Need to change the design in the application system.
发明人意识到,在此类应用系统中,传统上不同应用系统是通过采用不同的部署方式完成的,但是对于企业来说往往有快速完成部署应用系统的需求,传统上采用的方式会造成部署效率低,并且在部署的过程中,会因为一个服务器需要承载多个不同应用环境而造成应用冲突。The inventor realizes that in this type of application system, different application systems are traditionally completed by using different deployment methods, but for enterprises, there is often a need for rapid deployment of application systems. The traditional method will cause deployment The efficiency is low, and during the deployment process, application conflicts may be caused because a server needs to host multiple different application environments.
 To
申请内容Application content
本申请实施例提供一种应用系统部署方法、装置、计算机设备及存储介质,以解决应用系统部署效率低的问题。The embodiments of the present application provide an application system deployment method, device, computer equipment, and storage medium to solve the problem of low application system deployment efficiency.
一种应用系统部署方法,包括:An application system deployment method, including:
获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;Acquiring configuration information, where the configuration information includes function information, interface information, and authority information;
从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;Acquiring a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder;
解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template;
解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template;
获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;Acquiring preset functional interface configuration information, enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。In response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
一种应用系统部署装置,包括:An application system deployment device, including:
第一获取模块,用于获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;The first obtaining module is configured to obtain configuration information, where the configuration information includes function information, interface information, and authority information;
第二获取模块,用于从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;The second obtaining module is configured to obtain a permission master and an interface master from a database, the permission master includes a first placeholder, and the interface master includes a second placeholder;
第一解析模块,用于解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;The first parsing module is used to parse the authority information, extract a first replacement field from the authority information, and use the first replacement field to replace the first placeholder in the authority master to obtain the authority template ;
第二解析模块,用于解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;The second analysis module is configured to analyze the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template ;
第三获取模块,用于获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;The third acquisition module is configured to acquire preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the functional information, to obtain an interface template, and the target interface is required for realizing the functional information Called interface;
命令响应模块,用于响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。The command response module is used to respond to the container start command, run the permission template, interface template, and interface template in the application container engine, and deploy the application system.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions:
获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;Acquiring configuration information, where the configuration information includes function information, interface information, and authority information;
从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;Acquiring a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder;
解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template;
解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template;
获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;Acquiring preset functional interface configuration information, enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。In response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;Acquiring configuration information, where the configuration information includes function information, interface information, and authority information;
从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;Acquiring a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder;
解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template;
解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template;
获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;Acquiring preset functional interface configuration information, enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。In response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
上述应用系统部署方法、装置、计算机设备及存储介质中,通过获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。预留权限母版中的第一占位符和界面母版中的第二占位符,能够让用户根据对权限和界面不同的需求进行定制化更改,从而能够确定出每个用户的权限初始化和界面初始化,并根据用户对功能的需求确定后端应用中需要的接口,实现了功能自由化,采用模板和容器技术对应用系统进行部署,提高了部署应用系统的速度,实现了短时间内对多个应用系统进行快速部署。In the above application system deployment method, device, computer equipment, and storage medium, configuration information is obtained by obtaining configuration information, which includes function information, interface information, and authority information; the authority master and interface master are obtained from the database, and the authority master The version includes a first placeholder, and the interface master includes a second placeholder; the authority information is parsed, the first replacement field is extracted from the authority information, and the first replacement field is used to replace the authority The first placeholder in the master is obtained, and the permission template is obtained; the interface information is parsed, the second replacement field is extracted from the interface information, and the second replacement field is used to replace the second in the interface master. Placeholder to obtain an interface template; obtain preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the function information, to obtain an interface template, and the target interface is a place that implements the function information The interface that needs to be called; in response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system. The first placeholder in the reserved permission master and the second placeholder in the interface master allows users to make customized changes according to different requirements for permissions and interfaces, so as to determine the permission initialization of each user And the interface is initialized, and the interface needed in the back-end application is determined according to the user’s functional requirements, which realizes the freedom of function, uses the template and container technology to deploy the application system, improves the deployment speed of the application system, and realizes a short time Quickly deploy multiple application systems.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the present application are presented in the following drawings and description, and other features and advantages of the present application will become apparent from the description, drawings and claims.
 To
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请一实施例中应用系统部署方法的一应用环境示意图;FIG. 1 is a schematic diagram of an application environment of an application system deployment method in an embodiment of the present application;
图2是本申请一实施例中应用系统部署方法的一流程图;Fig. 2 is a flowchart of an application system deployment method in an embodiment of the present application;
图3是本申请一实施例中应用系统部署方法的另一流程图;FIG. 3 is another flowchart of the application system deployment method in an embodiment of the present application;
图4是本申请一实施例中应用系统部署方法的另一流程图;FIG. 4 is another flowchart of the application system deployment method in an embodiment of the present application;
图5是本申请一实施例中应用系统部署方法的另一流程图;FIG. 5 is another flowchart of the application system deployment method in an embodiment of the present application;
图6是本申请一实施例中应用系统部署装置的一原理框图;Fig. 6 is a functional block diagram of an application system deployment device in an embodiment of the present application;
图7是本申请一实施例中应用系统部署装置的另一原理框图;FIG. 7 is another functional block diagram of the application system deployment device in an embodiment of the present application;
图8是本申请一实施例中应用系统部署装置的另一原理框图;FIG. 8 is another functional block diagram of the application system deployment device in an embodiment of the present application;
图9是本申请一实施例中应用系统部署装置的另一原理框图;FIG. 9 is another functional block diagram of the application system deployment device in an embodiment of the present application;
图10是本申请一实施例中计算机设备的一示意图。Fig. 10 is a schematic diagram of a computer device in an embodiment of the present application.
 To
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例提供的应用系统部署方法,该应用系统部署方法可应用如图1所示的应用环境中。具体地,该应用系统部署方法应用在应用系统部署系统中,该应用系统部署系统包括如图1所示的客户端和服务器,客户端与服务器通过网络进行通信,用于解决应用系统部署效率低。其中,客户端又称为用户端,是指与服务器相对应,为客户提供本地服务的程序。客户端可安装在但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备上。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The application system deployment method provided by the embodiment of the present application can be applied to the application environment as shown in FIG. 1. Specifically, the application system deployment method is applied in an application system deployment system. The application system deployment system includes a client and a server as shown in FIG. . Among them, the client is also called the client, which refers to the program that corresponds to the server and provides local services to the client. The client can be installed on, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented as an independent server or a server cluster composed of multiple servers.
在一实施例中,如图2所示,提供一种应用系统部署方法,以该方法应用在图1中的服务器为例进行说明,包括如下步骤:In one embodiment, as shown in FIG. 2, an application system deployment method is provided. The method is applied to the server in FIG. 1 as an example for description, including the following steps:
S11:获取配置信息,所述配置信息包括功能信息、界面信息和权限信息。S11: Acquire configuration information, where the configuration information includes function information, interface information, and authority information.
其中,所述配置信息是配置应用系统需求的信息,所述配置信息可以根据用户的需求确定,也可以根据应用系统的默认配置来确定。配置信息包括功能信息、界面信息和权限信息。其中,所述功能信息为应用系统中具备的功能要求的信息,示例性地,功能信息可以为应用系统中的发送信息、接收信息、存储信息等功能信息。所述界面信息为应用系统中的前端UI界面信息,具体地,所述界面信息可以包括:界面的风格、界面的LOGO或者界面的页面大小等其它信息。所述权限信息是用于用户登录系统的权限信息,具体地,所述权限信息可以包括:用户名称、用户编号、用户密码或者用户账号的权限有效期等其它信息。Wherein, the configuration information is information for configuring the requirements of the application system, and the configuration information may be determined according to the requirements of the user, or may be determined according to the default configuration of the application system. The configuration information includes function information, interface information, and authority information. Wherein, the function information is information required by functions in the application system. Illustratively, the function information may be function information such as sending information, receiving information, and storing information in the application system. The interface information is front-end UI interface information in the application system. Specifically, the interface information may include other information such as the style of the interface, the LOGO of the interface, or the page size of the interface. The authority information is authority information for the user to log in to the system. Specifically, the authority information may include: user name, user number, user password, or authority validity period of the user account, and other information.
具体地,用户可以通过客户端界面在配置文件中编辑配置信息,当用户填写完成并保存配置信息之后,服务端会通过读取配置文件来获取配置信息。Specifically, the user can edit the configuration information in the configuration file through the client interface. After the user fills in and saves the configuration information, the server will obtain the configuration information by reading the configuration file.
S12:从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符。S12: Obtain an authority master and an interface master from the database, where the authority master includes a first placeholder, and the interface master includes a second placeholder.
其中,所述权限母版是能够适用于根据不同权限信息生成完整权限模板的基础母版,所述权限母版可以为多个SQL语句(Structured Query Language,结构化查询语言)组成的母版语句文件,所述权限母版包含了与权限信息相关的基础语句。进一步地,所述第一占位符是在所述权限母版中预留出来的SQL语句,所述第一占位符是用于预留权限母版中关于权限信息的个性化字段。具体地,所述第一占位符可以为所述权限信息中的名称、编号、密码或者权限有效期等其它权限信息的SQL语句。Wherein, the authority master is a basic master that can be used to generate a complete authority template based on different authority information, and the authority master can be multiple SQL statements (Structured Query Language (Structured Query Language) consists of a master sentence file, and the permission master contains basic sentences related to permission information. Further, the first placeholder is a SQL statement reserved in the authority master, and the first placeholder is a personalized field used to reserve the authority information in the authority master. Specifically, the first placeholder may be an SQL statement of other authority information such as the name, number, password, or authority validity period in the authority information.
其中,所述界面母版是能够适用于根据不同界面信息生成完整界面模板的基础母版,所述界面母版可以是html(Hypertext Marked Language,超文本标记语言)文件。进一步地,所述第二占位符是在所述界面母版中预留出来的html语句,所述第二占位符是用于预留界面母版中关于界面信息的定制化字段。具体地,所述定制化字段可以体现为logo、宣传语或者界面风格等界面定值信息。Wherein, the interface master is a basic master that can be used to generate a complete interface template according to different interface information, and the interface master may be html (Hypertext Marked Language (Hypertext Markup Language) files. Further, the second placeholder is an html sentence reserved in the interface master, and the second placeholder is a customized field used to reserve the interface information in the interface master. Specifically, the customized field may be embodied as interface fixed value information such as logo, slogan, or interface style.
S13:解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板。S13: Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template.
其中,所述第一替换字段指的是所述权限信息中与所述权限母版中的第一占位符相对应的字段。所述权限模板是根据所述第一替换字段替换所述权限母版中第一占位符后生成的模板。Wherein, the first replacement field refers to a field in the permission information corresponding to the first placeholder in the permission master. The permission template is a template generated after replacing the first placeholder in the permission master according to the first replacement field.
具体地,在服务端从配置文件中获取所述权限信息之后,对权限信息进行读取操作,识别并提取所述权限信息中的第一替换字段,并将所述第一替换字段中的真实值替换成所述第一占位符中的值,生成权限模板。Specifically, after the server obtains the permission information from the configuration file, it reads the permission information, identifies and extracts the first replacement field in the permission information, and replaces the true value in the first replacement field. The value is replaced with the value in the first placeholder to generate a permission template.
S14:解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板。S14: Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template.
其中,所述第二替换字段指的是所述界面信息中与所述界面母版中的第二占位符相对应的字段。所述界面模板是根据所述第二替换字段替换所述权限母版中第二占位符后生成的模板。Wherein, the second replacement field refers to a field in the interface information corresponding to the second placeholder in the interface master. The interface template is a template generated after replacing the second placeholder in the authority master according to the second replacement field.
具体地,在服务端从配置文件中获取所述界面信息之后,对界面信息进行读取操作,识别并提取所述界面信息中的第二替换字段,并将所述第二替换字段中的真实值替换成所述第二占位符中的值,生成界面模板。Specifically, after the server obtains the interface information from the configuration file, it reads the interface information, recognizes and extracts the second replacement field in the interface information, and replaces the true value in the second replacement field. The value is replaced with the value in the second placeholder to generate an interface template.
S15:获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口。S15: Obtain preset function interface configuration information, enable the target interface in the function interface configuration information according to the function information, and obtain an interface template, where the target interface is an interface that needs to be called to implement the function information.
其中,所述预设的功能接口配置信息指的是应用系统的后端应用中所有功能接口。具体地,从应用系统的后端应用中获取所有功能接口,根据所述功能信息,提取所述功能信息中需要调用的接口作为目标接口,并屏蔽所述功能信息中不需要调用的接口,将提取得到的目标接口作为接口模板。Wherein, the preset functional interface configuration information refers to all functional interfaces in the back-end application of the application system. Specifically, all the functional interfaces are obtained from the back-end applications of the application system, and the interfaces that need to be called in the functional information are extracted as the target interfaces according to the functional information, and the interfaces that do not need to be called in the functional information are shielded, and The extracted target interface is used as an interface template.
S16:响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。S16: In response to the container start command, run the permission template, interface template, and interface template in the application container engine to deploy the application system.
其中,所述容器启动命令是启动应用容器引擎的命令,所述应用容器引擎可以为应用容器引擎(docker),应用容器引擎可以用来承载多个中间件,具体地,所述中间件包括:运行容器、数据库实体、消息中间件和负载均衡设备等,进一步地,所述运行容器包括界面容器和功能容器,所述数据库实体包括权限容器。Wherein, the container start command is a command to start an application container engine, the application container engine may be an application container engine (docker), and the application container engine may be used to carry multiple middleware. Specifically, the middleware includes: Operation container, database entity, message middleware, load balancing device, etc., further, the operation container includes an interface container and a function container, and the database entity includes a permission container.
具体地,响应容器启动命令,所述启动命令启动所述应用容器引擎,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,进一步地,将所述权限模板在权限容器中运行,部署数据库,将所述界面模板在界面容器中运行,部署前端界面,将所述接口模板在功能容器中运行,部署后端应用,根据所述数据库、前端界面和后端应用,部署应用系统。Specifically, in response to a container start command, the start command starts the application container engine, runs the permission template, interface template, and interface template in the application container engine, and further, runs the permission template in the permission container Deploy the database, run the interface template in the interface container, deploy the front-end interface, run the interface template in the function container, deploy the back-end application, and deploy the application system according to the database, front-end interface and back-end application .
在本实施例中,通过获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。预留权限母版中的第一占位符和界面母版中的第二占位符,能够让用户根据对权限和界面不同的需求进行定制化更改,从而能够确定出每个用户的权限初始化和界面初始化,并根据用户对功能的需求确定后端应用中需要的接口,实现了功能自由化,采用模板和容器技术对应用系统进行部署,提高了部署应用系统的速度,实现了短时间内对多个应用系统进行快速部署。In this embodiment, by obtaining configuration information, the configuration information includes function information, interface information, and authority information; the authority master and interface master are obtained from the database, and the authority master includes the first placeholder, so The interface master includes a second placeholder; the authority information is parsed, a first replacement field is extracted from the authority information, and the first replacement field is used to replace the first placeholder in the authority master , Obtain a permission template; parse the interface information, extract a second replacement field from the interface information, and use the second replacement field to replace the second placeholder in the interface master to obtain the interface template; Preset function interface configuration information, enable the target interface in the function interface configuration information according to the function information to obtain an interface template, where the target interface is an interface that needs to be called to implement the function information; respond to a container start command , Run the permission template, interface template, and interface template in the application container engine to deploy the application system. The first placeholder in the reserved permission master and the second placeholder in the interface master allows users to make customized changes according to different requirements for permissions and interfaces, so as to determine the permission initialization of each user And the interface is initialized, and the interface needed in the back-end application is determined according to the user’s functional requirements, which realizes the freedom of function, uses the template and container technology to deploy the application system, improves the deployment speed of the application system, and realizes a short time Quickly deploy multiple application systems.
在一实施例中,如图3所述,所述解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板,包括:In one embodiment, as shown in FIG. 3, the authority information is parsed, a first replacement field is extracted from the authority information, and the first replacement field is used to replace the first in the authority master. Placeholder, get permission template, including:
S131:解析所述权限信息,从所述权限信息中提取出第一替换字段。S131: Parse the authority information, and extract the first replacement field from the authority information.
具体地,在服务端从配置文件中获取到所述权限信息之后,对所述权限信息进行读取操作,识别并提取所述第一替换字段。Specifically, after the server obtains the authority information from the configuration file, it performs a reading operation on the authority information to identify and extract the first replacement field.
S132:提取所述权限母版的第一占位符,生成第一占位符SQL语句,所述权限母版中的第一占位符是根据第一功能需求设定在所述权限母版中。S132: Extract the first placeholder of the authority master, and generate a first placeholder SQL statement. The first placeholder in the authority master is set in the authority master according to the first functional requirement. middle.
具体地,从数据库中获取所述权限母版,提取所述权限母版中的第一占位符,并根据所述第一占位符生成第一占位符SQL语句,所述第一占位符SQL语句是供第一替换字段替换第一占位符的值的语句。Specifically, the authority master is obtained from a database, the first placeholder in the authority master is extracted, and a first placeholder SQL statement is generated according to the first placeholder, and the first placeholder is The placeholder SQL statement is a statement for the first replacement field to replace the value of the first placeholder.
进一步地,在提取所述权限母版的第一占位符之前,服务端根据第一功能需求设定所述权限母板中的第一占位符。其中,所述第一功能需求指的是,用户设定的数据库权限和所述数据库权限对应的第一占位符的值,示例性地,用户设定的数据库权限有:账号(id)和权限有效期(limittime),该数据库权限对应的第一占位符的值为:id={id1},limittime={limittime1},因此,提取所述权限母版的第一占位符,生成的第一占位符SQL语句为:insert limitable (id、limittime) values ({id1}、{limittime1})。Further, before extracting the first placeholder of the authority master, the server sets the first placeholder in the authority master according to the first functional requirement. Wherein, the first functional requirement refers to the database permissions set by the user and the value of the first placeholder corresponding to the database permissions. Illustratively, the database permissions set by the user include: account (id) and Permission validity period (limittime), the value of the first placeholder corresponding to the database permission: id={id1}, limittime={limittime1}, therefore, the first placeholder of the permission master is extracted, and the generated first placeholder A placeholder SQL statement is: insert limitable (id, limittime) values ({id1}, {limittime1}).
S133:将所述第一替换字段输入所述至第一占位符SQL语句中,替换所述权限母版中的第一占位符。S133: Input the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the authority master.
其中,在服务端从配置文件中获取到所述权限信息之后,对所述权限信息进行读取操作,识别并提取所述第一替换字段,从数据库中获取所述权限母版,提取所述权限母版中的第一占位符,并根据所述第一占位符生成第一占位符SQL语句,将所述第一替换字段的真实值输入至所述第一占位符SQL语句中,代替所述权限母版中的第一占位符的值。示例性地,假设生成的第一占位符SQL语句为:insert limitable (id、limittime) values ({id1}、{limittime1}),所述第一替换字段的真实值为:id1=002,limittime1=2020-10-31,将所述第一替换字段的真实值替代所述第一占位符,得到的SQL语句为:insert limitable (id、limittime) values ({002}、{2020-10-31})。Wherein, after the server obtains the authority information from the configuration file, it reads the authority information, identifies and extracts the first replacement field, obtains the authority master from the database, and extracts the authority information. The first placeholder in the permission master, and a first placeholder SQL statement is generated according to the first placeholder, and the real value of the first replacement field is input into the first placeholder SQL statement , Replace the value of the first placeholder in the permission master. Exemplarily, suppose that the first placeholder SQL statement generated is: insert limitable (id, limittime) values ({id1}, {limittime1}), the true value of the first replacement field: id1=002, limittime1=2020-10-31, replace the true value of the first replacement field The SQL statement obtained by the first placeholder is: insert limitable (id, limittime) values ({002}, {2020-10-31}).
在本实施例中,通过在所述权限母版中预留所述第一占位符,采用所述第一占位符来控制SQL语句,并能够根据用户不同的权限需求生成对应的模板,在保证实现用户系统权限初始化的前提下,减少了SQL语句分析的难度,提高了生成不同用户系统权限的速度。In this embodiment, by reserving the first placeholder in the authority master, the first placeholder is used to control SQL statements, and corresponding templates can be generated according to different authority requirements of users. Under the premise of ensuring the initialization of user system permissions, the difficulty of SQL statement analysis is reduced, and the speed of generating system permissions for different users is improved.
在一实施例中,如图4所示,所述解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板,包括:In one embodiment, as shown in FIG. 4, the interface information is parsed, a second replacement field is extracted from the interface information, and the second replacement field is used to replace the second replacement field in the interface master. Placeholder, get the interface template, including:
S141:解析所述界面信息,从所述界面信息中提取出第二替换字段。S141: Parse the interface information, and extract a second replacement field from the interface information.
具体地,在服务端从配置文件中获取到所述界面信息之后,对所述界面信息进行读取操作,识别并提取所述第二替换字段。Specifically, after the server obtains the interface information from the configuration file, it performs a reading operation on the interface information to identify and extract the second replacement field.
S142:提取所述界面母版第二占位符,生成第二占位符html代码,所述界面母版中的第二占位符是根据第二功能需求设定的。S142: Extract the second placeholder of the interface master, and generate a second placeholder html code, where the second placeholder in the interface master is set according to the second functional requirement.
具体地,从数据库中获取所述界面母版,提取所述界面母版中的第二占位符,并根据所述第二占位符生成第二占位符html语句,所述第二占位符html语句是供第二替换字段替换第二占位符的值的语句。Specifically, the interface master is obtained from the database, the second placeholder in the interface master is extracted, and a second placeholder html sentence is generated according to the second placeholder, and the second placeholder is The placeholder html sentence is a sentence for the second replacement field to replace the value of the second placeholder.
进一步地,在提取所述界面母版的第二占位符之前,服务端根据第二功能需求设定所述界面母版中的第二占位符。其中,所述第二功能需求指的是,用户设定的界面元素和所述界面元素对应的第二占位符的值。Further, before extracting the second placeholder of the interface master, the server sets the second placeholder in the interface master according to the second functional requirement. Wherein, the second functional requirement refers to the interface element set by the user and the value of the second placeholder corresponding to the interface element.
S143:将所述第二替换字段输入至所述第二占位符html代码中,替换所述界面母版中的第二占位符。S143: Input the second replacement field into the second placeholder html code, and replace the second placeholder in the interface master.
具体地,在服务端从配置文件中获取到所述界面信息之后,对所述界面信息进行读取操作,识别并提取所述第二替换字段,从数据库中获取所述界面母版,提取所述界面母版中的第二占位符,并根据所述第二占位符生成第二占位符html语句,将所述第二替换字段的真实值输入至所述第二占位符html语句中,代替所述界面母版中第二占位符的值。其中,所述第二替换字段的真实值为第二替换字段中替换第二占位符的值的具体元素。Specifically, after the server obtains the interface information from the configuration file, it reads the interface information, identifies and extracts the second replacement field, obtains the interface master from the database, and extracts all the interface information. The second placeholder in the interface master, and generate a second placeholder html sentence according to the second placeholder, and input the real value of the second replacement field into the second placeholder html In the sentence, replace the value of the second placeholder in the interface master. Wherein, the actual value of the second replacement field is a specific element that replaces the value of the second placeholder in the second replacement field.
在一具体实施方法中,若所述第二占位符为带有指向性质的占位符,则需要先把指向文件放到指定位置,其中,所述带有指向性质的占位符可以理解为html代码中的超链接,示例性地,假设logo的第二占位符为{logo1},界面母板为:<div><logo>herf={logo1}<logo><div>,并且{logo1}是带有指向性质的占位符,设logo1=./jpg/logo1.jpg,则生成的界面模板为:<div><logo>herf=./jpg/logo1.jpg <logo><div>。In a specific implementation method, if the second placeholder is a placeholder with a pointing property, the pointing file needs to be placed in a designated position first, wherein the placeholder with a pointing property can be understood Is a hyperlink in the html code. For example, suppose the second placeholder of the logo is {logo1}, the interface mother board is: <div><logo>herf={logo1}<logo><div>, and { logo1} is a placeholder with a pointing nature, set logo1=./jpg/logo1.jpg, the generated interface template is: <div><logo>herf=./jpg/logo1.jpg <logo><div >.
在本实施例中,通过在所述界面母版中预留所述第二占位符,采用所述第二占位符来控制界面的html代码,并可以根据用户不同的界面需求生成对应的模板,在保证实现用户系统界面定制化的前提下,能够利用较小的成本完成多个不同的前端界面。In this embodiment, by reserving the second placeholder in the interface master, the second placeholder is used to control the html code of the interface, and the corresponding interface can be generated according to different user interface requirements. Templates, on the premise of ensuring that the user system interface is customized, can complete multiple different front-end interfaces at a relatively small cost.
在一实施例中,如图5所示,所述获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,所述目标接口为实现所述功能信息所需要调用的接口,包括:In one embodiment, as shown in FIG. 5, the acquiring preset functional interface configuration information, and enabling the target interface in the functional interface configuration information according to the function information, the target interface is for realizing the function The interface that the information needs to call includes:
S151:获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口。S151: Obtain preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application.
其中,所述预设的功能接口配置信息是后端应用中所有功能接口,预设的功能接口配置信息包括后端应用需要调用的接口。Wherein, the preset functional interface configuration information is all functional interfaces in the back-end application, and the preset functional interface configuration information includes the interfaces that the back-end application needs to call.
具体地,由于后端应用中的功能接口之间存在复杂的依赖关系,无法按照功能切分,因此,必须先获取预设的功能接口配置信息,即获取后端应用中所有功能接口。Specifically, because there are complex dependencies between the functional interfaces in the back-end application and cannot be segmented according to functions, it is necessary to obtain preset functional interface configuration information first, that is, to obtain all functional interfaces in the back-end application.
S152:在所述预设的功能接口配置信息中,确定并使能所述目标接口。S152: Determine and enable the target interface in the preset functional interface configuration information.
其中,所述目标接口为实现所述功能信息所需要调用的接口。Wherein, the target interface is an interface that needs to be called to realize the function information.
具体地,在获取预设的功能接口配置信息之后,服务端从配置文件中获取所述功能信息,对功能信息进行读取操作,得到功能信息中后端应用需要调用的接口,即目标接口,服务端在所述预设的功能接口配置信息中,提取所述目标接口,对目标接口进行激活调用。Specifically, after obtaining the preset functional interface configuration information, the server obtains the functional information from the configuration file, reads the functional information, and obtains the interface that the back-end application needs to call in the functional information, that is, the target interface, The server extracts the target interface from the preset functional interface configuration information, and activates the target interface.
S153:在所述预设的功能接口配置信息中,屏蔽所述功能信息中不需要调用的接口。S153: In the preset function interface configuration information, shield interfaces that do not need to be called in the function information.
其中,由于所述预设的功能接口配置信息中,包含了所述目标接口和功能信息中不需要调用的接口,因此,在调用了所述目标接口之后,服务端会屏蔽所述功能信息中不需要调用的接口。Wherein, since the preset function interface configuration information includes the target interface and the interface that does not need to be called in the function information, the server will block the function information after calling the target interface. No need to call the interface.
具体地,屏蔽所述功能信息中不需要调用的接口的方法为:将所述功能信息中不需要调用的接口从应用的统一网关的白名单中移除,进一步地,所述统一网关指的是,暴露应用接口的组件,用于控制白名单,即只暴露白名单中的应用接口,所述白名单指的是,控制对外暴露应用接口的白名单,即只有在白名单中的应用接口才会对外暴露。Specifically, the method of shielding the interface that does not need to be called in the function information is: removing the interface that does not need to be called in the function information from the whitelist of the unified gateway of the application. Further, the unified gateway refers to Yes, the component that exposes the application interface is used to control the whitelist, that is, only the application interfaces in the whitelist are exposed. The whitelist refers to the whitelist that controls the externally exposed application interfaces, that is, only the application interfaces in the whitelist Will be exposed to the public.
在本实施例中,通过获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口,再根据所述功能信息,在预设的功能接口配置信息中,提取所述功能信息需要调用的接口,并将所述功能信息中不需要调用的接口从应用的统一网关的白名单移除,屏蔽所述功能信息不需要调用的接口,提高了后端应用接口的准确性,并避免需要改动后端代码的操作。In this embodiment, by acquiring preset functional interface configuration information, the preset functional interface configuration information includes the interface that the back-end application needs to call, and then according to the functional information, in the preset functional interface configuration information , Extract the interface that the function information needs to call, and remove the interface that does not need to be called in the function information from the whitelist of the unified gateway of the application, shield the interface that the function information does not need to call, and improve the back-end application The accuracy of the interface, and avoid the need to modify the operation of the back-end code.
在一实施例中,所述响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统,包括:In an embodiment, in response to the container start command, running the permission template, interface template, and interface template in the application container engine to deploy the application system includes:
响应容器启动命令,运行应用容器引擎,所述应用容器引擎包括权限容器、界面容器和功能容器;In response to the container start command, run an application container engine, the application container engine including a permission container, an interface container, and a function container;
其中,所述容器启动命令是启动应用容器引擎的命令,所述应用容器引擎可以为docker应用容器引擎,应用容器引擎可以用来承载多个中间件,具体地,所述中间件包括:运行容器、数据库实体、消息中间件和负载均衡设备等。具体地,所述运行容器是应用运行时的运行环境,运行容器包括界面容器和功能容器,界面容器和功能容器可以使用tomcat应用服务器,所述数据库实体包括权限容器,所述权限容器可以为mySQL服务器、Redis服务器、oracle服务器或者其它的数据库服务器。Wherein, the container start command is a command to start an application container engine, the application container engine may be a docker application container engine, and the application container engine may be used to carry multiple middleware. Specifically, the middleware includes: running container , Database entities, message middleware, load balancing equipment, etc. Specifically, the running container is the running environment when the application is running. The running container includes an interface container and a function container. The interface container and the function container can use a tomcat application server. The database entity includes a permission container, and the permission container can be mySQL. Server, Redis server, oracle server or other database server.
具体地,响应容器启动命令,运行所述应用容器引擎,即运行所述权限容器、界面容器和功能容器。Specifically, in response to a container start command, the application container engine is run, that is, the permission container, interface container, and function container are run.
将所述权限模板拉取至所述权限容器中运行,部署数据库;Pull the permission template to run in the permission container, and deploy the database;
将所述界面模板拉取至所述界面容器中运行,部署前端应用;Pull the interface template to run in the interface container, and deploy the front-end application;
将所述接口模板拉取至所述功能容器中运行,部署后端应用;Pull the interface template to run in the function container, and deploy back-end applications;
根据所述数据库、前端应用和后端应用部署应用系统。The application system is deployed according to the database, front-end application, and back-end application.
具体地,响应容器启动命令,在运行所述应用容器引擎后,即运行所述权限容器、界面容器和功能容器之后,将所述权限模板拉取到已运行的所述数据库实体中,即将所述权限模板拉取到所述权限容器中,在所述权限容器中执行所述权限模板中的SQL语句,使得所述权限容器暴露服务端口,即为部署数据库的过程;将所述界面模板拉取到已运行的所述运行容器中,即将所述界面模板拉取到已运行的所述界面容器中,所述界面容器会自动识别加载所述界面模板中的html代码,即为部署前端应用的过程;将所述接口模板拉取到已运行的所述运行容器中,即将所述接口模板拉取到已运行的所述功能容器中,所述功能容器会自动识别加载各个后端接口的代码,即为部署后端应用。将得到的数据库,前端应用和后端应用输入至系统框架,部署应用系统。Specifically, in response to the container start command, after running the application container engine, that is, after running the permission container, interface container, and function container, pull the permission template into the running database entity, that is, The permission template is pulled into the permission container, and the SQL statement in the permission template is executed in the permission container, so that the permission container exposes the service port, which is the process of deploying the database; pulling the interface template Get the running container that has been run, that is, pull the interface template into the running interface container, and the interface container will automatically identify and load the html code in the interface template, which is to deploy the front-end application The process; pull the interface template into the running container that is already running, that is, pull the interface template into the running function container, the function container will automatically identify the loading of each back-end interface The code is to deploy the back-end application. Input the obtained database, front-end application and back-end application into the system framework, and deploy the application system.
在本实施例中,通过应用容器引擎来部署应用系统,能够同时运行不同应用环境的中间件,并且避免了传统上将所有中间件装在同一个服务器上可能会造成的冲突,提高了启动模板和容器的速度,通过将所述权限模板、界面模板和接口模板在对应的容器中运行,部署数据库、前端应用和后端应用,得到完整的应用系统,使得用户能够根据需求确定一套专属的应用系统。In this embodiment, the application system is deployed through the application container engine, which can run middleware of different application environments at the same time, and avoids the conflicts that may be caused by traditionally installing all middleware on the same server, and improves the startup template. And the speed of the container, by running the permission template, interface template and interface template in the corresponding container, deploying the database, front-end application and back-end application, a complete application system is obtained, enabling users to determine a set of exclusive operating system.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
在一实施例中,提供一种应用系统部署装置,该应用系统部署装置与上述实施例中应用系统部署方法一一对应。如图6所示,该应用系统部署装置包括第一获取模块11、第二获取模块12、第一解析模块13、第二解析模块14、第三获取模块15和命令响应模块16。各功能模块详细说明如下:In one embodiment, an application system deployment device is provided, and the application system deployment device corresponds to the application system deployment method in the above-mentioned embodiment in a one-to-one correspondence. As shown in FIG. 6, the application system deployment device includes a first acquisition module 11, a second acquisition module 12, a first analysis module 13, a second analysis module 14, a third acquisition module 15 and a command response module 16. The detailed description of each functional module is as follows:
第一获取模块11,用于获取配置信息,所述配置信息包括功能信息、界面信息和权限信息。The first obtaining module 11 is configured to obtain configuration information, where the configuration information includes function information, interface information, and authority information.
第二获取模块12,用于从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符。The second obtaining module 12 is configured to obtain a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder.
第一解析模块13,用于解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板。The first parsing module 13 is configured to parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain the authority template.
第二解析模块14,用于解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板。The second parsing module 14 is configured to parse the interface information, extract a second replacement field from the interface information, and use the second replacement field to replace the second placeholder in the interface master to obtain the interface template.
第三获取模块15,用于获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口。The third acquiring module 15 is configured to acquire preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the functional information, to obtain an interface template, and the target interface is the implementation of the functional information. The interface that needs to be called.
命令响应模块16,用于响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。The command response module 16 is used to respond to the container start command, run the permission template, interface template, and interface template in the application container engine, and deploy the application system.
优选地,如图7所示,所述第一解析模块13还包括:Preferably, as shown in FIG. 7, the first analysis module 13 further includes:
第三解析模块131,用于解析所述权限信息,从所述权限信息中提取出第一替换字段。The third parsing module 131 is used for parsing the authority information, and extracting the first replacement field from the authority information.
第一提取模块132,用于提取所述权限母版的第一占位符,生成第一占位符SQL语句,所述权限母版中的第一占位符是根据第一功能需求设定在所述权限母版中。The first extraction module 132 is configured to extract the first placeholder of the authority master to generate a first placeholder SQL statement, and the first placeholder in the authority master is set according to the first functional requirement In the permissions master.
第一替换模块133,用于将所述第一替换字段输入所述至第一占位符SQL语句中,替换所述权限母版中的第一占位符。The first replacement module 133 is configured to input the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the permission master.
优选地,如图8所示,所述第二解析模块14还包括:Preferably, as shown in FIG. 8, the second analysis module 14 further includes:
第四解析模块141,用于解析所述界面信息,从所述界面信息中提取出第二替换字段。The fourth analysis module 141 is configured to analyze the interface information, and extract the second replacement field from the interface information.
第二提取模块142,用于提取所述界面母版第二占位符,生成第二占位符html代码,所述界面母版中的第二占位符是根据第二功能需求设定的。The second extraction module 142 is configured to extract the second placeholder of the interface master and generate the second placeholder html code, and the second placeholder in the interface master is set according to the second functional requirement .
第二替换模块143,用于将所述第二替换字段输入至所述第二占位符html代码中,替换所述界面母版中的第二占位符。The second replacement module 143 is configured to input the second replacement field into the second placeholder html code, and replace the second placeholder in the interface master.
优选地,如图9所示,所述第三获取模块15还包括:Preferably, as shown in FIG. 9, the third acquiring module 15 further includes:
第四获取模块151,用于获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口。The fourth obtaining module 151 is configured to obtain preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application.
接口使能模块152,用于在所述预设的功能接口配置信息中,确定并使能所述目标接口。The interface enabling module 152 is configured to determine and enable the target interface in the preset functional interface configuration information.
接口屏蔽模块153,用于在所述预设的功能接口配置信息中,屏蔽所述功能信息中不需要调用的接口。The interface shielding module 153 is configured to shield the interfaces in the function information that do not need to be called in the preset function interface configuration information.
优选地,所述命令响应模块16还包括:Preferably, the command response module 16 further includes:
容器运行模块,用于响应容器启动命令,运行应用容器引擎,所述应用容器引擎包括权限容器、界面容器和功能容器。The container running module is used to respond to the container start command and run the application container engine. The application container engine includes a permission container, an interface container, and a function container.
第一拉取模块,用于将所述权限模板拉取至所述权限容器中运行,部署数据库。The first pull module is used to pull the permission template into the permission container to run and deploy the database.
第二拉取模块,用于将所述界面模板拉取至所述界面容器中运行,部署前端应用。The second pull module is used to pull the interface template into the interface container to run, and deploy the front-end application.
第三拉取模块,用于将所述接口模板拉取至所述功能容器中运行,部署后端应用。The third pull module is used to pull the interface template into the function container to run, and deploy back-end applications.
系统部署模块,用于根据所述数据库、前端应用和后端应用部署应用系统。The system deployment module is used to deploy the application system according to the database, front-end application and back-end application.
关于应用系统部署装置的具体限定可以参见上文中对于应用系统部署方法的限定,在此不再赘述。上述应用系统部署装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the application system deployment device, please refer to the above limitation on the application system deployment method, which will not be repeated here. Each module in the above-mentioned application system deployment device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图10所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括计算机可读指令、内存储器。该计算机可读指令存储有操作系统、计算机可读指令和数据库。该内存储器为计算机可读指令中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于上述应用系统部署方法中使用到的数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种应用系统部署方法。本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 10. The computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes computer readable instructions and internal memory. The computer readable instructions are stored with an operating system, computer readable instructions and a database. The internal memory provides an environment for the operation of the operating system and the computer-readable instructions in the computer-readable instructions. The database of the computer equipment is used for the data used in the above application system deployment method. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by the processor to implement an application system deployment method. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现上述实施例中应用系统部署方法。In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and running on the processor. The processor executes the computer-readable instructions to implement the application in the above-mentioned embodiment. System deployment method.
在一个实施例中,提供了一个或多个存储有计算机可读指令的可读存储介质,本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质;该可读存储介质上存储有计算机可读指令,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现上述实施例中应用系统部署方法。In one embodiment, one or more readable storage media storing computer readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage. Medium; the readable storage medium stores computer readable instructions, and when the computer readable instructions are executed by one or more processors, the one or more processors implement the application system deployment method in the above-mentioned embodiment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质或易失性可读存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by instructing relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer. In a readable storage medium or a volatile readable storage medium, when the computer readable instruction is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种应用系统部署方法,其中,所述应用系统部署方法包括: An application system deployment method, wherein the application system deployment method includes:
    获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;Acquiring configuration information, where the configuration information includes function information, interface information, and authority information;
    从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;Acquiring a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder;
    解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template;
    解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template;
    获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;Acquiring preset functional interface configuration information, enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
    响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。In response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  2. 如权利要求1所述的应用系统部署方法,其中,所述解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板,包括: 5. The application system deployment method according to claim 1, wherein said parsing said permission information, extracting a first replacement field from said permission information, and replacing said first replacement field in said permission master with said first replacement field The first placeholder, get the permission template, including:
    解析所述权限信息,从所述权限信息中提取出第一替换字段;Parse the authority information, and extract the first replacement field from the authority information;
    提取所述权限母版的第一占位符,生成第一占位符SQL语句,所述权限母版中的第一占位符是根据第一功能需求设定在所述权限母版中;Extracting the first placeholder of the authority master to generate a first placeholder SQL statement, the first placeholder in the authority master is set in the authority master according to the first functional requirement;
    将所述第一替换字段输入所述至第一占位符SQL语句中,替换所述权限母版中的第一占位符。Enter the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the authority master.
  3. 如权利要求1所述的应用系统部署方法,其中,所述解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板,包括: The application system deployment method according to claim 1, wherein the analysis of the interface information, extracts a second replacement field from the interface information, and replaces the second replacement field in the interface master with the second replacement field The second placeholder, get the interface template, including:
    解析所述界面信息,从所述界面信息中提取出第二替换字段;Parse the interface information, and extract a second replacement field from the interface information;
    提取所述界面母版第二占位符,生成第二占位符html代码,所述界面母版中的第二占位符是根据第二功能需求设定的;Extracting the second placeholder of the interface master to generate a second placeholder html code, the second placeholder in the interface master is set according to the second functional requirement;
    将所述第二替换字段输入至所述第二占位符html代码中,替换所述界面母版中的第二占位符。Input the second replacement field into the second placeholder html code to replace the second placeholder in the interface master.
  4. 如权利要求1所述的应用系统部署方法,其中,所述获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,所述目标接口为实现所述功能信息所需要调用的接口,包括: The application system deployment method according to claim 1, wherein said acquiring preset functional interface configuration information, and enabling a target interface in said functional interface configuration information according to said function information, said target interface is for realizing all The interface that needs to be called for the function information, including:
    获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口;Acquiring preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application;
    在所述预设的功能接口配置信息中,确定并使能所述目标接口;Determining and enabling the target interface in the preset functional interface configuration information;
    在所述预设的功能接口配置信息中,屏蔽所述功能信息中不需要调用的接口。In the preset function interface configuration information, an interface that does not need to be called in the function information is shielded.
  5. 如权利要求1所述的应用系统部署方法,其中,所述响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统,包括: The application system deployment method according to claim 1, wherein, in response to a container start command, running the permission template, interface template, and interface template in an application container engine to deploy the application system includes:
    响应容器启动命令,运行应用容器引擎,所述应用容器引擎包括权限容器、界面容器和功能容器;In response to the container start command, run an application container engine, the application container engine including a permission container, an interface container, and a function container;
    将所述权限模板拉取至所述权限容器中运行,部署数据库;Pull the permission template to run in the permission container, and deploy the database;
    将所述界面模板拉取至所述界面容器中运行,部署前端应用;Pull the interface template to run in the interface container, and deploy the front-end application;
    将所述接口模板拉取至所述功能容器中运行,部署后端应用;Pull the interface template to run in the function container, and deploy back-end applications;
    根据所述数据库、前端应用和后端应用部署应用系统。The application system is deployed according to the database, front-end application, and back-end application.
  6. 一种应用系统部署装置,其中,包括:An application system deployment device, which includes:
    第一获取模块,用于获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;The first obtaining module is configured to obtain configuration information, where the configuration information includes function information, interface information, and authority information;
    第二获取模块,用于从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;The second obtaining module is configured to obtain a permission master and an interface master from a database, the permission master includes a first placeholder, and the interface master includes a second placeholder;
    第一解析模块,用于解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;The first parsing module is used to parse the authority information, extract a first replacement field from the authority information, and use the first replacement field to replace the first placeholder in the authority master to obtain the authority template ;
    第二解析模块,用于解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;The second analysis module is configured to analyze the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template ;
    第三获取模块,用于获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;The third acquisition module is configured to acquire preset functional interface configuration information, enable the target interface in the functional interface configuration information according to the functional information, to obtain an interface template, and the target interface is required for realizing the functional information Called interface;
    命令响应模块,用于响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。The command response module is used to respond to the container start command, run the permission template, interface template, and interface template in the application container engine, and deploy the application system.
  7. 如权利要求6所述的应用系统部署装置,其中,所述第一解析模块包括:7. The application system deployment device according to claim 6, wherein the first analysis module comprises:
    第三解析模块,用于解析所述权限信息,从所述权限信息中提取出第一替换字段;The third analysis module is used to analyze the authority information, and extract the first replacement field from the authority information;
    第一提取模块,用于提取所述权限母版的第一占位符,生成第一占位符SQL语句,所述权限母版中的第一占位符是根据第一功能需求设定在所述权限母版中;The first extraction module is used to extract the first placeholder of the authority master and generate a first placeholder SQL statement. The first placeholder in the authority master is set in accordance with the first functional requirement. In the authority master;
    第一替换模块,用于将所述第一替换字段输入所述至第一占位符SQL语句中,替换所述权限母版中的第一占位符。The first replacement module is configured to input the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the permission master.
  8. 如权利要求6所述的应用系统部署装置,其中,所述第二解析模块包括:7. The application system deployment device according to claim 6, wherein the second analysis module comprises:
    第四解析模块,用于解析所述界面信息,从所述界面信息中提取出第二替换字段;The fourth analysis module is configured to analyze the interface information, and extract the second replacement field from the interface information;
    第二提取模块,用于提取所述界面母版第二占位符,生成第二占位符html代码,所述界面母版中的第二占位符是根据第二功能需求设定的;The second extraction module is configured to extract the second placeholder of the interface master and generate the second placeholder html code, the second placeholder in the interface master is set according to the second functional requirement;
    第二替换模块,用于将所述第二替换字段输入至所述第二占位符html代码中,替换所述界面母版中的第二占位符。The second replacement module is used to input the second replacement field into the second placeholder html code to replace the second placeholder in the interface master.
  9. 如权利要求6所述的应用系统部署装置,其中,所述第三获取模块包括:7. The application system deployment device according to claim 6, wherein the third acquisition module comprises:
    第四获取模块,用于获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口;The fourth obtaining module is configured to obtain preset functional interface configuration information, where the preset functional interface configuration information includes an interface that the back-end application needs to call;
    接口使能模块,用于在所述预设的功能接口配置信息中,确定并使能所述目标接口;An interface enabling module, configured to determine and enable the target interface in the preset functional interface configuration information;
    接口屏蔽模块,用于在所述预设的功能接口配置信息中,屏蔽所述功能信息中不需要调用的接口。The interface shielding module is used for shielding interfaces that do not need to be called in the function information in the preset function interface configuration information.
  10. 如权利要求6所述的应用系统部署装置,其中,所述命令响应模块包括:7. The application system deployment device according to claim 6, wherein the command response module comprises:
    容器运行模块,用于响应容器启动命令,运行应用容器引擎,所述应用容器引擎包括权限容器、界面容器和功能容器;The container running module is used to respond to the container start command and run the application container engine, the application container engine includes a permission container, an interface container, and a function container;
    第一拉取模块,用于将所述权限模板拉取至所述权限容器中运行,部署数据库;The first pull module is used to pull the permission template into the permission container to run, and deploy the database;
    第二拉取模块,用于将所述界面模板拉取至所述界面容器中运行,部署前端应用;The second pull module is used to pull the interface template into the interface container to run, and deploy the front-end application;
    第三拉取模块,用于将所述接口模板拉取至所述功能容器中运行,部署后端应用;The third pull module is used to pull the interface template to run in the function container, and deploy back-end applications;
    系统部署模块,用于根据所述数据库、前端应用和后端应用部署应用系统。The system deployment module is used to deploy the application system according to the database, front-end application and back-end application.
  11. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序计算机可读指令,其中,所述处理器执行所述计算机程序计算机可读指令时实现如下步骤: A computer device includes a memory, a processor, and computer program computer readable instructions stored in the memory and running on the processor, wherein when the processor executes the computer program computer readable instructions To achieve the following steps:
    获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;Acquiring configuration information, where the configuration information includes function information, interface information, and authority information;
    从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;Acquiring a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder;
    解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template;
    解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template;
    获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;Acquiring preset functional interface configuration information, enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
    响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。In response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  12. 如权利要求11所述的计算机设备,其中,所述从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板,包括:The computer device according to claim 11, wherein the first replacement field is extracted from the permission information, and the first replacement field is used to replace the first placeholder in the permission master to obtain the permission Templates, including:
    解析所述权限信息,从所述权限信息中提取出第一替换字段;Parse the authority information, and extract the first replacement field from the authority information;
    提取所述权限母版的第一占位符,生成第一占位符SQL语句,所述权限母版中的第一占位符是根据第一功能需求设定在所述权限母版中;Extracting the first placeholder of the authority master to generate a first placeholder SQL statement, the first placeholder in the authority master is set in the authority master according to the first functional requirement;
    将所述第一替换字段输入所述至第一占位符SQL语句中,替换所述权限母版中的第一占位符。Enter the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the authority master.
  13. 如权利要求11所述的计算机设备,其中,所述从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板,包括:The computer device according to claim 11, wherein the second replacement field is extracted from the interface information, and the second replacement field is used to replace the second placeholder in the interface master to obtain the interface Templates, including:
    解析所述界面信息,从所述界面信息中提取出第二替换字段;Parse the interface information, and extract a second replacement field from the interface information;
    提取所述界面母版第二占位符,生成第二占位符html代码,所述界面母版中的第二占位符是根据第二功能需求设定的;Extracting the second placeholder of the interface master to generate a second placeholder html code, the second placeholder in the interface master is set according to the second functional requirement;
    将所述第二替换字段输入至所述第二占位符html代码中,替换所述界面母版中的第二占位符。Input the second replacement field into the second placeholder html code to replace the second placeholder in the interface master.
  14. 如权利要求11所述的计算机设备,其中,所述获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,所述目标接口为实现所述功能信息所需要调用的接口,包括:The computer device according to claim 11, wherein said acquiring preset functional interface configuration information, and enabling a target interface in said functional interface configuration information according to said function information, said target interface is for realizing said function The interface that the information needs to call includes:
    获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口;Acquiring preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application;
    在所述预设的功能接口配置信息中,确定并使能所述目标接口;Determining and enabling the target interface in the preset functional interface configuration information;
    在所述预设的功能接口配置信息中,屏蔽所述功能信息中不需要调用的接口。In the preset function interface configuration information, an interface that does not need to be called in the function information is shielded.
  15. 如权利要求11所述的计算机设备,其中,所述响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统,包括:11. The computer device according to claim 11, wherein, in response to a container start command, running the permission template, interface template, and interface template in an application container engine to deploy an application system includes:
    响应容器启动命令,运行应用容器引擎,所述应用容器引擎包括权限容器、界面容器和功能容器;In response to the container start command, run an application container engine, the application container engine including a permission container, an interface container, and a function container;
    将所述权限模板拉取至所述权限容器中运行,部署数据库;Pull the permission template to run in the permission container, and deploy the database;
    将所述界面模板拉取至所述界面容器中运行,部署前端应用;Pull the interface template to run in the interface container, and deploy the front-end application;
    将所述接口模板拉取至所述功能容器中运行,部署后端应用;Pull the interface template to run in the function container, and deploy back-end applications;
    根据所述数据库、前端应用和后端应用部署应用系统。The application system is deployed according to the database, front-end application, and back-end application.
  16.   一个或多个存储有计算机可读指令的可读存储介质,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions, where when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
    获取配置信息,所述配置信息包括功能信息、界面信息和权限信息;Acquiring configuration information, where the configuration information includes function information, interface information, and authority information;
    从数据库中获取权限母版和界面母版,所述权限母版包括第一占位符,所述界面母版包括第二占位符;Acquiring a permission master and an interface master from a database, the permission master including a first placeholder, and the interface master including a second placeholder;
    解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板;Parse the authority information, extract a first replacement field from the authority information, and replace the first placeholder in the authority master with the first substitution field to obtain an authority template;
    解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板;Parse the interface information, extract a second replacement field from the interface information, and replace the second placeholder in the interface master with the second replacement field to obtain an interface template;
    获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,得到接口模板,所述目标接口为实现所述功能信息所需要调用的接口;Acquiring preset functional interface configuration information, enabling the target interface in the functional interface configuration information according to the functional information to obtain an interface template, where the target interface is an interface that needs to be called to implement the functional information;
    响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统。In response to the container start command, the permission template, interface template, and interface template are run in the application container engine to deploy the application system.
  17. 如权利要求16所述的可读存储介质,其中,所述解析所述权限信息,从所述权限信息中提取出第一替换字段,采用所述第一替换字段替换所述权限母版中的第一占位符,得到权限模板,包括:The readable storage medium according to claim 16, wherein said parsing said permission information, extracting a first replacement field from said permission information, and using said first replacement field to replace said permission master The first placeholder, get the permission template, including:
    解析所述权限信息,从所述权限信息中提取出第一替换字段;Parse the authority information, and extract the first replacement field from the authority information;
    提取所述权限母版的第一占位符,生成第一占位符SQL语句,所述权限母版中的第一占位符是根据第一功能需求设定在所述权限母版中;Extracting the first placeholder of the authority master to generate a first placeholder SQL statement, the first placeholder in the authority master is set in the authority master according to the first functional requirement;
    将所述第一替换字段输入所述至第一占位符SQL语句中,替换所述权限母版中的第一占位符。Enter the first replacement field into the first placeholder SQL statement, and replace the first placeholder in the authority master.
  18. 如权利要求16所述的可读存储介质,其中,所述解析所述界面信息,从所述界面信息中提取出第二替换字段,采用所述第二替换字段替换所述界面母版中的第二占位符,得到界面模板,包括:The readable storage medium according to claim 16, wherein said parsing said interface information, extracting a second replacement field from said interface information, and replacing said second replacement field in said interface master The second placeholder, get the interface template, including:
    解析所述界面信息,从所述界面信息中提取出第二替换字段;Parse the interface information, and extract a second replacement field from the interface information;
    提取所述界面母版第二占位符,生成第二占位符html代码,所述界面母版中的第二占位符是根据第二功能需求设定的;Extracting the second placeholder of the interface master to generate a second placeholder html code, the second placeholder in the interface master is set according to the second functional requirement;
    将所述第二替换字段输入至所述第二占位符html代码中,替换所述界面母版中的第二占位符。Input the second replacement field into the second placeholder html code to replace the second placeholder in the interface master.
  19. 如权利要求16所述的可读存储介质,其中,所述获取预设的功能接口配置信息,根据所述功能信息使能所述功能接口配置信息中的目标接口,所述目标接口为实现所述功能信息所需要调用的接口,包括:The readable storage medium according to claim 16, wherein the acquiring preset functional interface configuration information, and enabling the target interface in the functional interface configuration information according to the function information, the target interface is for realizing The interface that needs to be called for the function information, including:
    获取预设的功能接口配置信息,所述预设的功能接口配置信息包括后端应用需要调用的接口;Acquiring preset functional interface configuration information, where the preset functional interface configuration information includes an interface that needs to be called by a back-end application;
    在所述预设的功能接口配置信息中,确定并使能所述目标接口;Determining and enabling the target interface in the preset functional interface configuration information;
    在所述预设的功能接口配置信息中,屏蔽所述功能信息中不需要调用的接口。In the preset function interface configuration information, an interface that does not need to be called in the function information is shielded.
  20. 如权利要求16所述的可读存储介质,其中,所述响应容器启动命令,将所述权限模板、界面模板和接口模板在应用容器引擎中运行,部署应用系统,包括:The readable storage medium according to claim 16, wherein, in response to a container start command, running the permission template, interface template, and interface template in an application container engine to deploy an application system includes:
    响应容器启动命令,运行应用容器引擎,所述应用容器引擎包括权限容器、界面容器和功能容器;In response to the container start command, run an application container engine, the application container engine including a permission container, an interface container, and a function container;
    将所述权限模板拉取至所述权限容器中运行,部署数据库;Pull the permission template to run in the permission container, and deploy the database;
    将所述界面模板拉取至所述界面容器中运行,部署前端应用;Pull the interface template to run in the interface container, and deploy the front-end application;
    将所述接口模板拉取至所述功能容器中运行,部署后端应用;Pull the interface template to run in the function container, and deploy back-end applications;
    根据所述数据库、前端应用和后端应用部署应用系统。The application system is deployed according to the database, front-end application, and back-end application.
     To
PCT/CN2020/105044 2020-03-04 2020-07-28 Application system deployment method and apparatus, and computer device and storage medium WO2021174756A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010142986.1 2020-03-04
CN202010142986.1A CN111459608A (en) 2020-03-04 2020-03-04 Application system deployment method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021174756A1 true WO2021174756A1 (en) 2021-09-10

Family

ID=71681801

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105044 WO2021174756A1 (en) 2020-03-04 2020-07-28 Application system deployment method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN111459608A (en)
WO (1) WO2021174756A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230076276A1 (en) * 2021-09-06 2023-03-09 Jpmorgan Chase Bank, N.A. Data configuration deployment framework

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343858A (en) * 2018-11-01 2019-02-15 成都嗨翻屋科技有限公司 A kind of build a station automatically container deployment system and its working method based on server-side rendering
CN109446298A (en) * 2018-08-22 2019-03-08 优视科技(中国)有限公司 Template matching method and device, computer equipment and readable medium
CN109446218A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 SQL statement generation method, device and computer readable storage medium
CN110622129A (en) * 2016-12-21 2019-12-27 奥恩全球运营有限公司,新加坡分公司 Method, system, and portal for accelerating aspects of data analysis application development and deployment using software containers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110622129A (en) * 2016-12-21 2019-12-27 奥恩全球运营有限公司,新加坡分公司 Method, system, and portal for accelerating aspects of data analysis application development and deployment using software containers
CN109446298A (en) * 2018-08-22 2019-03-08 优视科技(中国)有限公司 Template matching method and device, computer equipment and readable medium
CN109446218A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 SQL statement generation method, device and computer readable storage medium
CN109343858A (en) * 2018-11-01 2019-02-15 成都嗨翻屋科技有限公司 A kind of build a station automatically container deployment system and its working method based on server-side rendering

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230076276A1 (en) * 2021-09-06 2023-03-09 Jpmorgan Chase Bank, N.A. Data configuration deployment framework
US11789712B2 (en) * 2021-09-06 2023-10-17 Jpmorgan Chase Bank, N.A. Data configuration deployment framework

Also Published As

Publication number Publication date
CN111459608A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
WO2020173128A1 (en) Method and device for generating software development kit, and terminal device
CN108958927B (en) Deployment method and device of container application, computer equipment and storage medium
US9792284B2 (en) System, method and computer program product for multilingual content management
US10496744B2 (en) Domain-specific lexically-driven pre-parser
US11126417B2 (en) System and method for application plug-in distribution
WO2020155775A1 (en) Method and device for generating application program based on core development environment
US9892122B2 (en) Method and apparatus for determining a range of files to be migrated
CN109657177A (en) The generation method of the page, device, storage medium and computer equipment after upgrading
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
US20230418623A1 (en) Application remodeling method, system, cluster, medium, and program product
WO2018233673A1 (en) Method and apparatus for configuring model code in controller, and storage medium
WO2023035563A1 (en) Applet cross-application migration method, device, terminal, system and storage medium
CN111782207A (en) Method, device and equipment for generating task stream code and storage medium
US10514940B2 (en) Virtual application package reconstruction
US10560524B2 (en) System and method providing local development of executable content pages normally run on a server within a user session
WO2021174756A1 (en) Application system deployment method and apparatus, and computer device and storage medium
US9672020B2 (en) Selectively loading precompiled header(s) and/or portion(s) thereof
CN112346774A (en) Method and device for generating application installation package
KR20170105325A (en) Method for analyzing source code, system and apparatus for executing the method
WO2022099913A1 (en) Interface configuration method and apparatus, and device and medium
CN113064698A (en) Method for providing product environment and corresponding device, system, equipment and medium
US10769376B2 (en) Domain-specific lexical analysis
CN111782183B (en) Method and device for judging component dependency, electronic device and medium
CN112394980B (en) Model simulation method, device, equipment and storage medium
CN118034652A (en) Method for automatically generating service codes

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: 20922766

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 110123)

122 Ep: pct application non-entry in european phase

Ref document number: 20922766

Country of ref document: EP

Kind code of ref document: A1