Configuration method, system and computer device for software development
By decoupling the client and server through a lightweight publish-subscribe middleware, and using file description information and security verification to synchronize configuration files, the flexibility limitations of traditional configuration methods are solved, enabling efficient configuration of business application systems and supporting a variety of application business needs.
Patent Information
- Application Number
- CN202211267576.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-17
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2042-10-17
AI Technical Summary
In existing technologies, when business application systems face drastic changes in business strategies, developers want to customize the configuration structure. However, the traditional properties configuration method of the Spring Boot framework limits flexibility and introduces heavyweight entity dependencies, resulting in an overly heavy system framework dependency, making it difficult to efficiently support ever-changing application business.
By using a lightweight publish-subscribe middleware, the client and server are decoupled. The middleware is used to obtain configuration change notifications, perform secure verification and synchronization of file description information, and realize notification-based lightweight configuration to support various application business needs.
It enables business application systems to operate independently of servers, efficiently support a variety of application services, reduce the maintenance cost of configuration files, improve development efficiency, and support diverse application service requirements.
Smart Images

Figure CN115576599B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer software development technology, and in particular to a configuration method, system and computer device for software development. Background Technology
[0002] Business application systems rely heavily on configurations to enhance flexibility and efficiently support evolving business needs. These configurations encompass various types, including stable configurations for connection parameters to upstream and downstream systems, effective information filtering, security classes, and framework classes, as well as strategy-based configurations that change during business expansion. Strategy-based configurations are typically used to efficiently support dynamic business needs. Traditional strategy-based configurations utilize the properties configuration method provided by the Spring Boot framework. This method has limitations, such as requiring the business application system to be developed using Spring and the configuration structure to be YAML. However, when dealing with drastic changes in business strategies, developers often want to customize the configuration structure and use various databases to maintain the configuration. When the supported structure is not flexible enough, it introduces heavyweight entity dependencies into the business application system, making the system framework overly dependent. Summary of the Invention
[0003] The purpose of this application is to at least partially solve the problems of the prior art and provide a configuration method, system and computer device for software development, which enables business application systems to be independent of servers and support a variety of application services through a lightweight publish-subscribe middleware.
[0004] The technical solution of this application embodiment is as follows:
[0005] Firstly, this application provides a configuration method for software development, applied to a client, the method comprising:
[0006] Obtain a first configuration change notification from the publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware;
[0007] The client obtains the file description information of the first configuration change notification, and obtains the security verification information corresponding to the file description information based on the file description information, wherein the file description information represents the information of the configuration file corresponding to the first configuration change notification;
[0008] Send the file description information to the server so that the server sends the algorithm verification information obtained based on the file description information to the client;
[0009] If the security verification information is different from the algorithm verification information, a file download request is sent to the server to obtain the configuration file.
[0010] Synchronize the configuration file to the client's file cache;
[0011] The system receives application service requirements, searches the file cache for the configuration file corresponding to the application service requirements, and uses the configuration file to configure the software to be developed.
[0012] According to some embodiments of this application, the file description information includes a file name, which includes a business name, a business function module name, and a version number;
[0013] After obtaining the first configuration change notification from the publish-subscribe middleware, the method further includes:
[0014] The first configuration change notification is filtered based on the service name, the service function module name, and the version number to obtain the second configuration change notification.
[0015] The client obtains the file description information of the second configuration change notification and then uses this information to obtain the security verification information.
[0016] According to some embodiments of this application, synchronizing the configuration file to the client's file cache includes:
[0017] The client's loading method selector is used to establish a mapping relationship between the file attributes of the configuration file and the preset loading method;
[0018] After the configuration file overrides the client's configuration file, the configuration file is loaded into the client's file cache according to the mapping relationship.
[0019] According to some embodiments of this application, the application service requirements carry file name information;
[0020] After receiving the application service request, the method further includes:
[0021] The cache reference information is obtained based on the file format in the filename information, so that it corresponds to the configuration file in the file cache, or...
[0022] The file content in the filename information is logically transformed to correspond to the configuration file in the file cache.
[0023] Secondly, this application provides a software development configuration method applied to a server, the method comprising:
[0024] The system receives push notifications from the front-end development interface and sends a first configuration change notification to the publish-subscribe middleware based on the push notifications, so that the client can obtain the first configuration change notifications from the publish-subscribe middleware. The push notifications are obtained by triggering a click operation on the push notification.
[0025] Receive file description information sent by the client, obtain algorithm verification information based on the file description information, and send the algorithm verification information to the client;
[0026] The system receives a download request from the client, retrieves the configuration file corresponding to the download request from the file system, and sends the configuration file to the client so that the client can use the configuration file to configure the software to be developed.
[0027] According to some embodiments of this application, the method further includes:
[0028] Receive file operation commands sent by the front-end development interface;
[0029] The file system is processed according to the file operation command.
[0030] According to some embodiments of this application, the configuration file adopts a three-level namespace, which includes a business name, a business function module name, and a version number.
[0031] Thirdly, this application provides a configuration system for software development, including a client and a server.
[0032] The client includes:
[0033] The first acquisition module is used to acquire a first configuration change notification from the publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware;
[0034] The second acquisition module is used to acquire the file description information of the first configuration change notification. The client obtains the security verification information corresponding to the file description information based on the file description information, wherein the file description information represents the information of the configuration file corresponding to the first configuration change notification.
[0035] The first sending module is used to send the file description information to the server, so that the server sends the algorithm verification information obtained based on the file description information to the client;
[0036] The first receiving module is used to receive the algorithm verification information. If the security verification information is different from the algorithm verification information, the first sending module is also used to send a file download request to the server to obtain the configuration file.
[0037] The file synchronization module is used to synchronize the configuration file to the file cache of the client;
[0038] The second receiving module is used to receive application business requirements, and the business processing module is used to search for the configuration file corresponding to the application business requirements in the file cache, so as to configure the software to be developed using the configuration file.
[0039] The server includes:
[0040] The third receiving module is used to receive push notifications sent by the front-end development interface. The second sending module is used to send a first configuration change notification to the publish-subscribe middleware according to the push notification, so that the client can obtain the first configuration change notification from the publish-subscribe middleware. The push notification is obtained by triggering a click operation on the push.
[0041] The fourth receiving module is used to receive file description information sent by the client and obtain algorithm verification information based on the file description information. The third sending module is used to send the algorithm verification information to the client.
[0042] The fourth receiving module is also used to receive the download request from the client, the file acquisition module is used to obtain the configuration file corresponding to the download request from the file system, and the third sending module is also used to send the configuration file to the client so that the client can use the configuration file to configure the software to be developed.
[0043] Fourthly, this application provides a computer device including a memory and a processor, the memory storing computer-readable instructions that, when executed by one or more of the processors, cause the one or more processors to perform the steps of any of the methods described in the first and second aspects above.
[0044] Fifthly, this application also provides a computer-readable storage medium that can be read and written by a processor, the storage medium storing computer instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the method described in any of the first and second aspects above.
[0045] The technical solution provided in this application has the following beneficial effects:
[0046] This application proposes a configuration method, system, and computer device for software development. The configuration method includes: obtaining a first configuration change notification from a publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware. Obtaining the configuration change notification from the lightweight publish-subscribe middleware instead of directly from the server decouples the client from the server, supports multiple application services, and facilitates subsequent notification-based configuration; obtaining file description information of the first configuration change notification, wherein the client obtains security verification information corresponding to the file description information, wherein the file description information represents the information of the configuration file corresponding to the first configuration change notification, which is beneficial for subsequently determining the updated client configuration file based on the security verification information; sending the file description information to the server so that the server sends algorithm verification information obtained from the file description information to the client; receiving the algorithm verification information, and if the security verification information and the algorithm verification information are different, sending a file download request to the server to obtain the configuration file, and obtaining the configuration file through verification; synchronizing the configuration file to the client's file cache; receiving application business requirements, searching for the configuration file corresponding to the application business requirements in the file cache, and using the configuration file to configure the software to be developed, which can support various received application business requirements and realize customized configuration. Compared to existing technologies that introduce heavy dependencies into business application systems, which limit the configuration of diverse application services, the embodiments of this application enable business application systems to operate independently of servers through a lightweight publish-subscribe middleware, thus efficiently supporting a variety of application services. Attached Figure Description
[0047] Figure 1 This is a flowchart illustrating a configuration method for software development provided in one embodiment of this application;
[0048] Figure 2 This is a flowchart illustrating a configuration method for software development provided in another embodiment of this application;
[0049] Figure 3 yes Figure 1 A flowchart illustrating a sub-step of step S150;
[0050] Figure 4 This is a flowchart illustrating a configuration method for software development provided in another embodiment of this application;
[0051] Figure 5 This is a flowchart illustrating a configuration method for software development provided in another embodiment of this application;
[0052] Figure 6 This is a flowchart illustrating a configuration method for software development provided in another embodiment of this application;
[0053] Figure 7 This is a schematic diagram of a three-level namespace for a software development configuration method provided in one embodiment of this application;
[0054] Figure 8 This is a schematic diagram of the structure of a configuration system for software development provided in one embodiment of this application;
[0055] Figure 9 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0057] It should be noted that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0058] In related technologies, another approach for developers to configure strategy-type configurations is to store the configuration files locally on the server for self-management. This approach allows for rapid development, but the deployment of the application (such as maintaining local paths in various environments) is costly and has many problems. Furthermore, the code for loading and parsing configuration files is scattered in various places, resulting in high maintenance costs.
[0059] Based on this, embodiments of this application propose a configuration method, system, and computer device for software development. The configuration method includes: obtaining a first configuration change notification from a publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware. Obtaining the configuration change notification from the lightweight publish-subscribe middleware instead of directly from the server decouples the client from the server, supports multi-purpose application services, and facilitates subsequent notification-based configuration; obtaining file description information of the first configuration change notification, wherein the client obtains security verification information corresponding to the file description information based on the file description information, wherein the file description information represents the information of the configuration file corresponding to the first configuration change notification. This information facilitates subsequent determination of the updated client configuration file based on security verification information; it sends file description information to the server so that the server can send algorithm verification information obtained from the file description information to the client; it receives algorithm verification information, and if the security verification information and algorithm verification information are different, it sends a file download request to the server to obtain the configuration file, performs verification, and obtains the configuration file; it synchronizes the configuration file to the client's file cache; it receives application business requirements, searches for the corresponding configuration file in the file cache, and uses the configuration file to configure the software to be developed. It can support various received application business requirements, is not limited to a certain data structure, and realizes customized configuration. Compared with the existing technology that introduces heavyweight dependencies into the business application system, which limits the configuration of variable application businesses, this application embodiment enables the business application system to be independent of the server through a lightweight publish-subscribe middleware, and can efficiently support a variety of application businesses.
[0060] It should be noted that this software development configuration method enables lightweight, customized configuration of the software under development, and can be applied to scenarios involving the development of financial or medical software using Java or Python, as well as other languages. It is not limited to any particular data structure and has a wide range of applications. This configuration method saves developers time spent on configuration and improves development efficiency.
[0061] The embodiments of this application can be used in numerous general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can reside in local and remote computer storage media, including storage devices.
[0062] The configuration method, system, and computer equipment for software development provided in the embodiments of this application will now be described with reference to the accompanying drawings.
[0063] See Figure 1 , Figure 1 A flowchart illustrating a software development configuration method provided in an embodiment of this application is shown. The software development configuration method is applied to the client of a software development configuration system, and includes, but is not limited to, steps S110, S120, S130, S140, S150, and S160.
[0064] Step S110: Obtain the first configuration change notification from the publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware.
[0065] In one embodiment, the client receives a first configuration change notification in real time from the publish-subscribe middleware. This first configuration change notification is sent by the server. A lightweight publish-subscribe middleware is added between the client and the server, decoupling the client from the server. The middleware caches notifications from the server and distributes them to subscribers. This way, the server is independent of specific business systems, enabling configuration for various application services and facilitating lightweight, notification-based configuration. Specifically, the first configuration change notification is triggered when a developer clicks on a push notification of a configuration file change on the front-end page. The front-end page sends the notification to the server, which then forwards it to the publish-subscribe middleware, which distributes it to subscribers.
[0066] Step S120: Obtain the file description information of the first configuration change notification. The client obtains the security verification information corresponding to the file description information based on the file description information. The file description information represents the information of the configuration file corresponding to the first configuration change notification.
[0067] In one embodiment, based on the first configuration change notification obtained in step S110, a description of the configuration file corresponding to the first configuration change notification is obtained. Exemplarily, this includes the filename and information about digitally signing the configuration file. The client parses the file description information to obtain security verification information corresponding to the file description information. This security verification information is processed using the MD5() algorithm to ensure information integrity and consistency. Other digital signature algorithms can also be used, but will not be elaborated here. It should be noted that after parsing the file description information, the client searches for the local configuration file corresponding to the file description in its local configuration files. The security verification information is also obtained by processing the local configuration file. Obtaining the security verification information is beneficial for subsequently determining whether to update the local configuration file based on the verification information.
[0068] In one embodiment, the file description information includes a filename, which includes a service name, a service function module name, and a version number, such as... Figure 2 As shown, after receiving the first configuration change notification from the publish-subscribe middleware, the configuration method for software development also includes, but is not limited to, the following steps:
[0069] Step S210: Filter the first configuration change notification according to the service name, service function module name and version number to obtain the second configuration change notification.
[0070] In one embodiment, the client's configuration file uses a three-level namespace. The corresponding business can be obtained based on the business name, and the business function module name is the function module name of the business in the application scenario. Combined with the version number, the configuration file corresponding to the first configuration change notification can be obtained. The first configuration change notification is filtered based on the business name, business function module name, and version number, filtering out irrelevant configuration change notifications. For example, if the first change notification is a viewing notification indicating that the configuration file has not changed, it is filtered to obtain the second configuration change notification, which is beneficial for obtaining subsequent security verification information. The second configuration change notification corresponds to the configuration file and is obtained by first filtering the first configuration change notification.
[0071] Step S220: Obtain the file description information of the second configuration change notification. The client obtains security verification information based on the file description information of the second configuration change notification.
[0072] In one embodiment, based on the second configuration change notification obtained in step S210, the client obtains the description information of the configuration file corresponding to the second configuration change notification. The client parses the file description information to obtain the security verification information corresponding to the file description information. This security verification information is processed using the MD5() algorithm on the configuration file to ensure information integrity and consistency. Other digital signature algorithms can also be used, but will not be elaborated here. It should be noted that after parsing the file description information, the client searches for the local configuration file corresponding to the file description in its local configuration files. The security verification information is also obtained by processing the local configuration file. Obtaining the security verification information is beneficial for subsequently determining whether to update the local configuration file based on the verification information.
[0073] Step S130: Send file description information to the server so that the server can send the algorithm verification information obtained from the file description information to the client.
[0074] In one embodiment, the file description information obtained in step S120 or step S220 is sent to the server, so that the server sends the algorithm verification information obtained from the file description information to the client. Being able to obtain the algorithm verification information from the server is beneficial for subsequent information verification.
[0075] Step S140: Receive algorithm verification information. If the security verification information and the algorithm verification information are different, send a file download request to the server to obtain the configuration file.
[0076] In one embodiment, the system receives algorithm verification information from the server, compares the security verification information with the algorithm verification information, and if they are different, it indicates that the configuration file of the client corresponding to the configuration change notification is different from the server's configuration file, requiring an update to the client's configuration file. The system then sends a file download request to the server and downloads the configuration file. Obtaining the configuration file facilitates subsequent updates to the client's configuration file.
[0077] Step S150: Synchronize the configuration file to the client's file cache.
[0078] In one embodiment, based on the configuration file obtained in step S140, the client uses the configuration file to update the local configuration file and synchronizes the configuration file to the file cache for easy access, and then uses the configuration file for business configuration.
[0079] like Figure 3 As shown, synchronizing the configuration file to the client's file cache includes, but is not limited to, the following steps:
[0080] Step S151: Use the client's loading method selector to establish a mapping relationship between the file attributes of the configuration file and the preset loading method.
[0081] In one embodiment, after downloading the configuration file, the client's loading method selector establishes a mapping relationship between the configuration file's attributes and preset loading methods. When the configuration file is changed, the preset loading method is triggered. The preset loading method can be an object loading method, an array loading method, or a matrix loading method, which will not be elaborated upon here.
[0082] Step S152: After the configuration file overwrites the client's configuration file, the configuration file is loaded into the client's file cache according to the mapping relationship.
[0083] In one embodiment, after the configuration file overwrites the client's configuration file, causing the configuration file to change, the loading method of the loading method selector is triggered according to the mapping relationship to load the configuration file into the client's file cache, which is beneficial for quickly obtaining the configuration file for subsequent configuration. Steps S110 to S150 are the push mode of file synchronization, which is simpler.
[0084] In another embodiment, a file synchronization pull mode can be adopted, where the client does not send a file download request to the server. Instead, the server exposes the download file when it receives a push notification, allowing the client to directly load the file through a loading method. The above-mentioned file synchronization pull mode can achieve flexible control.
[0085] Step S160: Receive application business requirements, search for the configuration file corresponding to the application business requirements in the file cache, and use the configuration file to configure the software to be developed.
[0086] In one embodiment, upon receiving an application business requirement, the system first searches for the corresponding configuration file in the file cache. If found, the configuration file is used to configure the software to be developed. If the corresponding configuration file is not found in the file cache, it searches for the corresponding configuration file stored on the client side and uses it to configure the software to be developed. This approach enables the configuration of various application business requirements, saving developers' time.
[0087] In one embodiment, the application service requirement carries filename information, such as... Figure 4 As shown, after receiving application business requirements, the software development configuration method also includes, but is not limited to, the following steps:
[0088] Step S310: Obtain cache reference information based on the file format in the file name information to ensure that it corresponds to the configuration file in the file cache.
[0089] In one embodiment, the client's caching interface receives an application business request, parses the file format in the filename information (i.e., extracts the suffix information from the filename), converts the file format, and obtains cache reference information to correspond with the configuration file in the file cache. For example, with the filename information a.json, the obtained cache reference information is a JSONObject object. Based on the client loading method selector in step S151, the configuration file can be obtained using the loading method callback interface.
[0090] Step S320: Perform logical transformation based on the file content in the file name information to make it correspond to the configuration file in the file cache.
[0091] In one embodiment, the client's caching interface receives an application business request, parses the file content from the filename information (i.e., extracts the name information from the filename), and transforms the file content to correspond to the configuration file in the file cache. For example, the filename information is an n-line plain text string, read in as an ArrayList. <string>After obtaining the conversion information, and using the loading method callback interface according to the client loading method selector in step S151, the configuration file can be obtained.
[0092] See Figure 5 , Figure 5 A flowchart illustrating a software development configuration method provided in an embodiment of this application is shown. The software development configuration method is applied to a server of a software development configuration system, and includes, but is not limited to, steps S410, S420, and S430.
[0093] Step S410: Receive push notification sent by the front-end development interface, and send a first configuration change notification to the publish-subscribe middleware according to the push notification, so that the client can obtain the first configuration change notification from the publish-subscribe middleware. The push notification is obtained by triggering a click operation on the push.
[0094] In one embodiment, a developer clicks on a push notification in the front-end development interface. The front-end page triggers the click operation to send a push notification to the server. The server receives the push notification and sends a first configuration change notification to the publish-subscribe middleware according to the push notification, so that the client can obtain the first configuration change notification from the publish-subscribe middleware. The server implements the publication of the notification, and the client subscribes to the notification, thereby realizing notification-based configuration. The publish-subscribe middleware distributes the notification to the subscribers, so the server does not depend on the specific business system.
[0095] Step S420: Receive file description information sent by the client, obtain algorithm verification information based on the file description information, and send the algorithm verification information to the client.
[0096] In one embodiment, based on the file description information sent by the client, the server parses the file description information, retrieves the corresponding configuration file from the file system, digitally signs the configuration file to obtain algorithm verification information, and sends the algorithm verification information to the client. This helps the client determine whether to update the configuration file. The algorithm verification information is processed using the MD5() algorithm to ensure information integrity and consistency. Other digital signature algorithms can also be used, but will not be elaborated here.
[0097] Step S430: Receive the client's download request, retrieve the configuration file corresponding to the download request from the file system, and send the configuration file to the client so that the client can configure the software to be developed using the configuration file.
[0098] In one embodiment, the server receives a download request from the client, obtains the configuration file corresponding to the download request, retrieves the configuration file from the file system, and sends the configuration file to the client so that the client can use the configuration file to configure the software to be developed.
[0099] like Figure 6 As shown, the configuration methods for software development also include, but are not limited to, the following steps:
[0100] Step S510: Receive file operation commands sent by the front-end development interface.
[0101] In one embodiment, developers upload, delete, view, and download configuration files on the front-end development interface. The front-end page responds to the developer's file operations by sending file operation commands to the server, which correspond to uploading, deleting, viewing, and downloading configuration files.
[0102] Step S520: Perform the corresponding processing operation on the file system according to the file operation command.
[0103] In one embodiment, the server performs processing operations on the file system corresponding to the file operation commands, and the configuration system's server manages the file system to ensure that the configuration files are consistent.
[0104] In one embodiment, a developer uploads a configuration file on the front-end interface and clicks the change notification push. The server receives the file operation command and push notification sent by the front-end interface. The file operation command instructs the upload of a new configuration file, so the server stores the configuration file in the file system. According to the push notification, the server sends a first configuration change notification to the publish-subscribe middleware. The client obtains the first configuration change notification from the publish-subscribe middleware, filters the first configuration change notification to obtain a second change notification, obtains the file description information of the second change notification, and performs information verification. When the client's configuration file is different from the configuration file obtained by the server from the file system, the client downloads the updated configuration file from the server, uses the updated configuration file to overwrite the local configuration file, loads the updated configuration file into the file cache, speeds up file access, and thus realizes rapid configuration of the software to be developed in the business system.
[0105] In one embodiment, the file system has a disaster recovery design. The data entity storing the files can be multiple NAS disks that replicate each other. The multiple replicas can be synchronized in real time to respond to the latest content of the file in real time, or only the real-time performance of one replica can be guaranteed, while the other replicas synchronize data at other times.
[0106] like Figure 7 As shown, the server's configuration files are stored using a three-level namespace. This namespace includes a business name, a business function module name, and a version number. The business name represents the name of each business, the business function module name represents the function module name for the corresponding scenario, and the version number indicates that the configuration file has multiple versions. For example, the configuration space includes business name 1 and business name 2. Business name 1 includes business function module name 1 and business function module name 2, business name 2 includes business function module name 3, business function module name 1 includes version number 1, business function module name 2 includes version number 2 and version number 3, and business function module name 3 includes version number 4 and version number 5. Each version number corresponds to at least one configuration file, forming a tree structure. The various businesses are isolated from each other, supporting multiple business application systems.
[0107] See Figure 8 This application provides a software development configuration system 100, including a client 110 and a server 120. The client 110 obtains a first configuration change notification from a publish-subscribe middleware using a first acquisition module 111. The first configuration change notification is sent to the publish-subscribe middleware by the server 120. Obtaining the configuration change notification from the lightweight publish-subscribe middleware instead of directly from the server 120 decouples the client 110 from the server, supports multi-purpose application services, and facilitates subsequent notification-based configuration. The client 110 obtains the file description information of the first configuration change notification through a second acquisition module 112. Based on the file description information, the client 110 obtains the file... The security verification information corresponding to the description information includes file description information representing the configuration file information corresponding to the first configuration change notification, which is helpful for subsequently determining the configuration file to update client 110 based on the security verification information. The first sending module 113 sends the file description information to server 120, so that server 120 sends the algorithm verification information obtained from the file description information to client 110. Then, the first receiving module 114 receives the algorithm verification information. If the security verification information and the algorithm verification information are different, the first sending module 113 sends a file download request to server 120 to obtain the configuration file. After verification, the configuration file is obtained. Then, the configuration file is synchronized to the file cache of the client 110 via the file synchronization module 115; the second receiving module 116 receives the application business requirements of the business application system 200, and the business processing module 117 is used to find the configuration file corresponding to the application business requirements in the file cache, so as to configure the software to be developed using the configuration file. It can support various application business requirements received, and is not limited to a certain data structure, thus realizing customized configuration; the server includes: receiving push notifications sent by the front-end development interface 400 via the third receiving module 121, and sending a first configuration change notification to the publish-subscribe middleware according to the push notification via the second sending module 122, so that the client 110 can receive the push notifications. 0. Obtain the first configuration change notification from the publish / subscribe middleware, wherein the push notification is obtained by triggering a click operation on the push; then, receive the file description information sent by the client 110 through the fourth receiving module 123, obtain the algorithm verification information based on the file description information, and send the algorithm verification information to the client 110 through the third sending module 124; receive the download request from the client 110 through the fourth receiving module 123, and then obtain the configuration file corresponding to the download request from the file system 300 through the file acquisition module 125, and send the configuration file to the client 110 through the third sending module 124, so that the client 110 can configure the software to be developed using the configuration file.
[0108] It should be noted that the first acquisition module 111 is connected to the second acquisition module 112 and the publish / subscribe middleware, the second acquisition module 112 is connected to the first sending module 113, the first sending module 113 is connected to the first receiving module 114 and the fourth receiving module 123, the first receiving module 114 is connected to the file synchronization module 115, the file synchronization module 115 is connected to the second receiving module 116, the second receiving module 116 is connected to the business processing module 117 and the business application system 200, the third receiving module 121 is connected to the second sending module 122 and the front-end development interface 400, the second sending module 122 is connected to the publish / subscribe middleware and the fourth receiving module 123, the fourth receiving module 123 is connected to the third sending module 124, the third sending module 124 is connected to the file acquisition module 125, and the file acquisition module 125 is connected to the file system 300. The above-described software development configuration method operates on the software development configuration system 100. This system, through a lightweight publish-subscribe middleware, enables the business application system 200 to operate independently of the server 120 and support various application services. Specifically, the first acquisition module 111 interacts with the publish-subscribe middleware; the second acquisition module 112 parses file change notifications to obtain file description information; the first sending module 113 and the first receiving module 114 interact with the server 120; the second receiving module 116 interacts with the business application system 200; the third receiving module 121 interacts with the front-end development interface 400; the second sending module 122 interacts with the publish-subscribe middleware; and the fourth receiving module 123 and the third sending module 124 interact with the client 110.
[0109] It should also be noted that the client 110 of the software development configuration system 100 can also be integrated with the business application system 200, making it more convenient and faster to obtain or call the configuration file.
[0110] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0111] Figure 9 This application illustrates a computer device 500 provided in an embodiment of the present application. The computer device 500 may be a server or a terminal, and its internal structure includes, but is not limited to:
[0112] Memory 510 is used to store programs;
[0113] The processor 520 is used to execute the program stored in the memory 510. When the processor 520 executes the program stored in the memory 510, the processor 520 is used to execute the above-mentioned software development configuration method.
[0114] The processor 520 and memory 510 can be connected via a bus or other means.
[0115] The memory 510, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs, such as the software development configuration method described in any embodiment of this application. The processor 520 implements the above-described software development configuration method by running the non-transitory software program and instructions stored in the memory 510.
[0116] The memory 510 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store configuration methods for executing the software development described above. Furthermore, the memory 510 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 510 may optionally include memory remotely located relative to the processor 520, and these remote memories can be connected to the processor 520 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0117] The non-transitory software program and instructions required to implement the above-described software development configuration method are stored in the memory 510. When executed by one or more processors 520, the software development configuration method provided in any embodiment of this application is executed.
[0118] This application also provides a computer-readable storage medium storing computer-executable instructions for executing the above-described software development configuration method.
[0119] In one embodiment, the storage medium stores computer-executable instructions that are executed by one or more control processors 520, such as one processor 520 in the computer device 500, which can cause the one or more processors 520 to perform the configuration method for software development provided in any embodiment of this application.
[0120] The embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0121] The terms "first," "second," "third," "fourth," etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0122] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0123] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0124] The foregoing has provided a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.< / string>
Claims
1. A configuration method for software development, characterized in that, Applied to a client, the method includes: Obtain a first configuration change notification from the publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware; The client obtains the file description information of the first configuration change notification, and obtains the security verification information corresponding to the file description information based on the file description information. The file description information represents the information of the configuration file corresponding to the first configuration change notification. The file description information includes a file name, which includes a service name, a service function module name, and a version number. The security verification information is obtained by the client based on the file description information of the second configuration change notification. The second configuration change notification is obtained by the client by filtering the first configuration change notification based on the service name, the service function module name, and the version number. Send the file description information to the server so that the server sends the algorithm verification information obtained based on the file description information to the client; If the security verification information is different from the algorithm verification information, a file download request is sent to the server to obtain the configuration file. The client's loading method selector is used to establish a mapping relationship between the file attributes of the configuration file and the preset loading method; After the configuration file overrides the client's configuration file, the configuration file is loaded into the client's file cache according to the mapping relationship; The system receives application service requirements, searches the file cache for the configuration file corresponding to the application service requirements, and uses the configuration file to configure the software to be developed.
2. The method according to claim 1, characterized in that, The application service requirements carry file name information; After receiving the application service request, the method further includes: The cache reference information is obtained based on the file format in the file name information so that it corresponds to the configuration file in the file cache; or, the file content in the file name information is logically transformed so that it corresponds to the configuration file in the file cache.
3. A configuration method for software development, characterized in that, Applied to a server, the method includes: The system receives push notifications from the front-end development interface and sends a first configuration change notification to the publish-subscribe middleware based on the push notifications, so that the client can obtain the first configuration change notifications from the publish-subscribe middleware. The push notifications are obtained by triggering a click operation on the push notification. Receive file description information sent by the client, obtain algorithm verification information based on the file description information, and send the algorithm verification information to the client; The system receives a download request from the client, retrieves the configuration file corresponding to the download request from the file system, and sends the configuration file to the client so that the client can use the configuration file to configure the software to be developed.
4. The method according to claim 3, characterized in that, The method further includes: Receive file operation commands sent by the front-end development interface; The file system is processed according to the file operation command.
5. The method according to claim 4, characterized in that, The configuration file uses a three-level namespace, which includes the business name, business function module name, and version number.
6. A configuration system for software development, characterized in that, It includes a client and a server, wherein the client includes: The first acquisition module is used to acquire a first configuration change notification from the publish-subscribe middleware, wherein the first configuration change notification is sent by the server to the publish-subscribe middleware; The second acquisition module is used to acquire the file description information of the first configuration change notification. The client obtains the security verification information corresponding to the file description information based on the file description information. The file description information represents the information of the configuration file corresponding to the first configuration change notification. The file description information includes a file name, which includes a business name, a business function module name, and a version number. The security verification information is obtained by the client based on the file description information of the second configuration change notification. The second configuration change notification is obtained by the client by filtering the first configuration change notification based on the business name, the business function module name, and the version number. The first sending module is used to send the file description information to the server, so that the server sends the algorithm verification information obtained based on the file description information to the client; The first receiving module is used to receive the algorithm verification information. If the security verification information is different from the algorithm verification information, the first sending module is also used to send a file download request to the server to obtain the configuration file. The file synchronization module is used to establish a mapping relationship between the file attributes of the configuration file and the preset loading method using the client's loading method selector; after the configuration file overwrites the client's configuration file, the configuration file is loaded into the client's file cache according to the mapping relationship; The second receiving module is used to receive application business requirements, and the business processing module is used to search for the configuration file corresponding to the application business requirements in the file cache, so as to configure the software to be developed using the configuration file. The server includes: The third receiving module is used to receive push notifications sent by the front-end development interface. The second sending module is used to send a first configuration change notification to the publish-subscribe middleware according to the push notification, so that the client can obtain the first configuration change notification from the publish-subscribe middleware. The push notification is obtained by triggering a click operation on the push. The fourth receiving module is used to receive file description information sent by the client and obtain algorithm verification information based on the file description information. The third sending module is used to send the algorithm verification information to the client. The fourth receiving module is also used to receive the download request from the client, the file acquisition module is used to obtain the configuration file corresponding to the download request from the file system, and the third sending module is also used to send the configuration file to the client so that the client can use the configuration file to configure the software to be developed.
7. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing computer-readable instructions that, when executed by one or more of the processors, cause the one or more of the processors to perform the steps of the method as described in any one of claims 1 to 2, 3 to 5.
8. A computer-readable storage medium, characterized in that, The storage medium is readable and writable by a processor, and the storage medium stores computer-executable instructions that, when executed by one or more processors, cause one or more processors to perform the steps of the method as described in any one of claims 1 to 2, 3 to 5.
Citation Information
Patent Citations
Software radar integration architecture and development environment
CN111596263A
Online conference communication method and device based on AI and computer equipment
CN112367494A