Page processing method, system and equipment, storage medium and computer program product
By saving page templates in the external storage system of the Web application server and using the dynamic configuration library to manage configuration information, the problem of front-end and back-end development dependency is solved, and multi-version management of pages and development efficiency are improved.
Patent Information
- Application Number
- CN202410281741.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2025-09-12
AI Technical Summary
The existing web application page processing method requires obtaining page templates locally from the server, resulting in heavy dependence on front-end and back-end development and low development efficiency.
The page template is saved in a storage system independent of the server, and the configuration item ID and configuration information are managed through the dynamic configuration library, which supports on-demand effectiveness. The server renders the page according to the effective configuration information.
It achieves relative independence of front-end and back-end development, supports multi-version management of pages, and improves the efficiency of Web application development.
Smart Images

Figure CN120631312A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page processing method, system, device, storage medium, and computer program product. Background Art
[0002] Currently, it's common to develop Web (World Wide Web) applications based on the MVC (Model-View-Controller) framework. The server side of an MVC-based Web application includes a controller layer (Controller), a model layer (Model), and a view layer (View). Web application page processing typically proceeds as follows: the client submits an access request to the Web application's server side. The controller layer responds by calling the model layer to process the request, obtaining a model object (Model) and a logical view name. The view resolver in the view layer resolves the logical view name (Logical View Name) into a page template storage path. Based on the page template storage path, the pre-stored page template is retrieved from the Web application's server side. The model object is rendered using the page template to obtain a Web page, which is then sent to the client for display.
[0003] From the above, it can be seen that the page processing method of existing Web applications requires obtaining pre-stored page templates locally from the server of the Web application. This will result in the page templates developed by front-end developers needing to be saved locally on the server of the Web application during the Web application development process, making back-end developers heavily dependent on front-end development results when performing back-end development, resulting in serious dependence on the front-end and back-end development of Web applications and low development efficiency. Summary of the Invention
[0004] Various aspects of the present application provide a page processing method, system, device, storage medium, and computer program product, which are used to propose a new method for rendering pages for Web applications. This method can greatly make the front-end and back-end development of Web applications relatively independent, thereby improving the efficiency of Web application development.
[0005] An embodiment of the present application provides a page processing method, which is applied to the server side of a Web application of a model-view-controller (MVC) framework, wherein the server side includes a controller layer, a model layer, and a view layer. The method includes: the controller layer responds to an access request sent by a client, calls the model layer to process the access request, and obtains a model object and a target logical view name; a view resolver in the view layer determines a target configuration item ID corresponding to the target logical view name based on a pre-established mapping relationship between the configuration item ID and the logical view name; the view resolver queries the server side for configuration information and its configuration item ID that are pre-associated and stored locally in a dynamic configuration library based on the target configuration item ID, to obtain configuration information of the target configuration item ID; the view resolver obtains the target page template from a storage system based on the page template storage path in the configuration information of the target configuration item ID, and uses the target page template to render the model object to obtain a target Web page; the view resolver sends the target Web page to the client side for the client to display the target Web page.
[0006] An embodiment of the present application also provides a page processing method, including: responding to the development operation of a front-end developer, obtaining a first page template developed for a first page with the latest page version number, and saving the first page template to a storage system; obtaining a first configuration item ID and first configuration information configured by the front-end developer for the first page template, and associating and storing the first configuration item ID and the first configuration information in a dynamic configuration library; and sending the effective configuration information and its configuration item ID in the configuration information in the dynamic configuration library to a server of a Web application based on an MVC framework for associated storage.
[0007] An embodiment of the present application also provides a page processing system, including: a front-end development end, a storage system, a dynamic configuration library, and a server end of a Web application based on an MVC framework; the front-end development end is used to respond to the development operations of the front-end developer, obtain a first page template developed for a first page, and save the first page template to the storage system; and obtain a first configuration item ID and first configuration information configured by the front-end developer for the first page template, and associate the first configuration item ID and the first configuration information and store them in the dynamic configuration library; the dynamic configuration library is used to detect whether the configuration information in the dynamic configuration library is effective, and send the effective configuration information and its configuration item ID to the server end; the server end is used to associate and save the effective configuration information and its configuration item ID locally, so that the server executes the steps in the page processing method.
[0008] An embodiment of the present application also provides a computer device, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program to perform the steps in the page processing method.
[0009] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is enabled to implement the steps in the page processing method.
[0010] An embodiment of the present application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the processor is enabled to implement the steps in the page processing method.
[0011] The technical solution provided by the embodiment of the present application is that the page template developed by the front-end developer is no longer stored locally on the server side of the Web application, but is stored in a storage system independent of the server side of the Web application; the configuration item ID and configuration information configured by the front-end developer for the page template developed are stored in a dynamic configuration library, and the configuration information in the dynamic configuration library supports on-demand effectiveness. The dynamic configuration library associates and saves the effective configuration information and its configuration item ID to the server side of the Web application. In this way, when the client accesses the server side of the Web application, based on the effective configuration information and its configuration item ID, it can be ensured that the client displays the Web page of the page template corresponding to the effective configuration information. Therefore, since the page template is no longer stored locally on the server side of the Web application, it supports the front-end developer to modify the page template, provides support for the implementation of multi-version management of the page, can greatly make the front-end and back-end development of the Web application relatively independent, and improve the efficiency of Web application development. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0013] Figure 1 A schematic diagram of the architecture of a page processing system provided in an embodiment of the present application;
[0014] Figure 2 A flowchart of a page processing method provided in an embodiment of the present application;
[0015] Figure 3 A flowchart of another page processing method provided in an embodiment of the present application;
[0016] Figure 4 A schematic diagram of the structure of a page processing device provided in an embodiment of the present application;
[0017] Figure 5 A schematic diagram of the structure of another page processing device provided in an embodiment of the present application;
[0018] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0020] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the access relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of the present application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship. In addition, in the embodiments of the present application, "first", "second", "third", etc. are only used to distinguish the contents of different objects and have no other special meanings.
[0021] Currently, it's common to develop web applications based on the MVC (Model-View-Controller) framework. The server side of an MVC-based web application includes a controller layer (Controller), a model layer (Model), and a view layer (View). Web application page processing typically proceeds as follows: the client submits an access request to the web application's server side. The controller layer responds by calling the model layer to process the request, obtaining a model object (Model) and a logical view name. The view resolver in the view layer resolves the logical view name (Logical View Name) into a page template storage path. Based on the page template storage path, it retrieves a pre-stored page template from the web application's server side, uses the page template to render the model object, and obtains a web page. The web page is then sent to the client for display.
[0022] From the above, it can be seen that the page processing method of existing Web applications requires obtaining pre-stored page templates locally from the server of the Web application. This will result in the page templates developed by front-end developers needing to be saved locally on the server of the Web application during the Web application development process, making back-end developers heavily dependent on front-end development results when performing back-end development, resulting in serious dependence on the front-end and back-end development of Web applications and low development efficiency.
[0023] To this end, the embodiments of the present application provide a page processing method, system, device, storage medium and computer program product. In the embodiments of the present application, the page template developed by the front-end developer is no longer stored locally on the server side of the Web application, but is stored in a storage system independent of the server side of the Web application; the configuration item ID and configuration information configured by the front-end developer for the page template developed are stored in a dynamic configuration library. The configuration information in the dynamic configuration library supports on-demand effectiveness. The dynamic configuration library associates and saves the effective configuration information and its configuration item ID to the server side of the Web application. In this way, when the client accesses the server side of the Web application, based on the effective configuration information and its configuration item ID, it can be ensured that the client displays the Web page of the page template corresponding to the effective configuration information. Therefore, since the page template is no longer stored locally on the server side of the Web application, it supports the front-end developer to modify the page template, provides support for the implementation of multi-version management of the page, can greatly make the front-end and back-end development of the Web application relatively independent, and improve the efficiency of Web application development.
[0024] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
[0025] Figure 1 The present invention provides a schematic diagram of the architecture of a page processing system. Figure 1 The page processing system may include: a front-end development end 10, a storage system 20, a dynamic configuration library 30 and a Web application server 40 based on the MVC framework.
[0026] In this embodiment, the front-end development terminal 10 is a device used by front-end developers for front-end development, including, but not limited to, desktop computers, laptops, tablet computers, and the like. The storage system 20 includes, but is not limited to, an object-based storage system (OSS) and a content delivery network (CDN). The dynamic configuration library 30 can be any component with data storage capabilities, including, but not limited to, a relational database, a non-relational database, a local database, a cloud database, and the like.
[0027] In this embodiment, the front-end development end 10 is used to respond to the development operations of the front-end developer, obtain the first page template developed for the first page, and save the first page template to the storage system 20; and obtain the first configuration item ID and first configuration information configured by the front-end developer for the first page template, and associate the first configuration item ID and the first configuration information and store them in the dynamic configuration library 30.
[0028] Specifically, in the front-end development stage, the front-end developer develops a new web page. As time goes by, the front-end developer will also revise the existing web page, that is, upgrade the web page version. Whether developing a new web page or revising an existing web page, the front-end developer performs the development operation of the corresponding page template on the front-end development terminal 10, such as Figure 1 As shown in ①, the developed page template is pushed to the storage system 20 for storage. A page template is a pre-designed web page structure, including a header, footer, navigation bar, content area, etc., which can be used to quickly build and develop web pages. For example, a page template is a variety of HTML (Hypertext Markup Language) templates.
[0029] For ease of understanding, the web page currently being developed by the front-end developer is referred to as the first page of the latest page version number, and the page template developed for the first page of the latest page version number is referred to as the first page template. It is understood that the first page of the latest page version number can be a newly developed web page or a revised web page.
[0030] It is worth noting that, completely different from the existing technology in which the page templates developed by the front-end developers are stored in the server 40 of the Web application, the page templates developed by the front-end developers are stored in the storage system 20. The storage system 20 can save the page templates of each page version number of the Web page, providing support for the implementation of multi-version management of the page.
[0031] In this embodiment, after the front-end developer develops the first page template, the front-end developer configures the first page template on the front-end development terminal 10, and configures the configuration item ID (Identity document) and configuration information for the first page template. Here, the configuration item ID configured for the first page template is referred to as the first configuration item ID, and the configuration information configured for the first page template is referred to as the first configuration information. Figure 1 As shown in ②, the front-end development end 10 needs to associate the first configuration item ID and the first configuration information and store them in the dynamic configuration library 30.
[0032] In this embodiment, configuration item IDs are unique. A mapping relationship between multiple configuration item IDs and multiple logical view names is pre-set, with a one-to-one correspondence between configuration item IDs and logical view names. Each page template has a unique logical view name, and a unique configuration item ID is assigned to the page template based on its logical view name.
[0033] In this embodiment, the configuration information includes, for example, but is not limited to, page template storage paths, template variables, or page version numbers. The page template storage path is the storage path of the page template in storage system 20, and the page template can be retrieved from storage system 20 through the page template storage path. Template variables refer to the variables of the page template. Different template variables will change the page content of the web page. Adding a page version number to the configuration information supports multi-version management of the page.
[0034] In this embodiment, the dynamic configuration library 30 is used to detect whether the configuration information in the dynamic configuration library 30 is effective, and to send the effective configuration information and its configuration item ID to the server 40.
[0035] Specifically, over time, multiple configuration information and configuration item IDs are stored in the dynamic configuration library 30. The same configuration item ID may contain one or more configuration information. For example, the dynamic configuration library 30 contains configuration information for multiple page versions of a web page, including configuration information for the page template with page version number V1, configuration information for the page template with page version number V2, and configuration information for the page template with page version number V3.
[0036] In actual applications, for any Web page, the configuration information of a certain page version number of the Web page in the dynamic configuration library 30 can be controlled to take effect as needed. In this way, when the client subsequently accesses the server 40 of the Web application, the Web page with the effective page version number can be obtained from the server 40 for display, thereby flexibly controlling the page version number of the Web page displayed by the client, that is, displaying Web pages of different version numbers on the client according to the dynamic page template, thereby realizing multi-version management of the page.
[0037] It is worth noting that in the prior art, the page templates developed by front-end developers are stored in the web application server 40. Consequently, the client can only display the fixed web page corresponding to the static page template at any time. To enable the client to display a web page with a different page version number, the client needs to re-store the different page template in the web application server 40. Back-end developers need to re-develop the back-end code based on the changed page template, which is time-consuming and labor-intensive, and does not allow for multi-version page management.
[0038] In actual applications, any relevant personnel such as operation and maintenance personnel or front-end developers can send an effective instruction to the dynamic configuration library 30. The effective instruction indicates the configuration information corresponding to the page version number that needs to be effective. The dynamic configuration library 30 makes the corresponding configuration information effective according to the effective instruction. Figure 1As shown in Figure ③, the dynamic configuration library 30 sends the effective configuration information and its configuration item ID to the web application server 40. It's worth noting that, among the configuration information with different page version numbers in the dynamic configuration library 30, only one configuration information with a different page version number can be effective at any given time. After receiving the effective instruction, if the dynamic configuration library 30 has multiple configuration information items corresponding to the configuration item ID of the configuration information to be effective, it sets all configuration information except the configuration information to be effective to an ineffective state.
[0039] In this embodiment, the server 40 is used to associate and save the effective configuration information and its configuration item ID locally. Specifically, the effective configuration information and its configuration item ID are saved in the server 40 of the Web application so that the subsequent client can display the Web page of the page template corresponding to the effective configuration information.
[0040] Over time, the dynamic configuration library 30 may continuously push the configuration information and configuration item IDs of the effective page templates to the web application server 40. Optionally, to enable the client to display the web page corresponding to the page template corresponding to the most recently effective configuration information, the web application server 40 may delete the configuration information corresponding to the effective configuration item ID stored locally on the server 40 based on the effective configuration item ID sent by the dynamic configuration library 30 before associating and saving the configuration information of the effective page template and its configuration item ID.
[0041] The technical solution provided by the embodiment of the present application is that the page template developed by the front-end developer is no longer stored locally on the server side of the Web application, but is stored in a storage system independent of the server side of the Web application; the configuration item ID and configuration information configured by the front-end developer for the page template developed are stored in a dynamic configuration library, and the configuration information in the dynamic configuration library supports on-demand effectiveness. The dynamic configuration library associates and saves the effective configuration information and its configuration item ID to the server side of the Web application. In this way, when the client accesses the server side of the Web application, based on the effective configuration information and its configuration item ID, it can be ensured that the client displays the Web page of the page template corresponding to the effective configuration information. Therefore, since the page template is no longer stored locally on the server side of the Web application, it supports the front-end developer to modify the page template, provides support for the implementation of multi-version management of the page, can greatly make the front-end and back-end development of the Web application relatively independent, and improve the efficiency of Web application development.
[0042] After the effective configuration information and its configuration item ID are associated and saved on the server side of the Web application, when the client accesses the server side of the Web application, the Web page of the page template corresponding to the effective configuration information can be guaranteed to be displayed on the client side based on the effective configuration information and its configuration item ID. Figure 2This section describes the process of accessing a web application server from a client.
[0043] Figure 2 This is a flow chart of a page processing method provided in an embodiment of the present application. The method is applied to the server side of a Web application of an MVC framework, which includes a controller layer, a model layer, and a view layer. Figure 2 , the method may include the following steps:
[0044] 201. The controller layer responds to the access request sent by the client and calls the model layer to process the access request to obtain the model object and the target logical view name.
[0045] In practical applications, see Figure 1 As shown in Figure 4, the user triggers the client to send an access request, such as an HTML request, to the web application server. The server's controller layer responds to the client's access request, calls the model layer to process the request, and returns a ModelAndView object, which includes the model object and the target logical view name. The controller layer then provides the model object and the target logical view name to the view layer for subsequent processing.
[0046] 202. The view resolver in the view layer determines the target configuration item ID corresponding to the target logical view name according to the pre-established mapping relationship between the configuration item ID and the logical view name.
[0047] 203. The view resolver queries the server locally for the configuration information of the page template and its configuration item ID that are pre-associated and saved from the dynamic configuration library based on the target configuration item ID, to obtain the configuration information of the target configuration item ID.
[0048] 204. The view resolver obtains the target page template from the storage system according to the page template storage path in the configuration information of the target configuration item ID, and uses the target page template to render the model object to obtain the target Web page.
[0049] 205. The view resolver sends the target web page to the client so that the client displays the target web page.
[0050] Specifically, a mapping relationship between the configuration item ID and the logical view name is pre-established. After the view layer receives the model object and the target logical view name sent by the controller layer, it first queries the mapping relationship between the configuration item ID and the logical view name based on the target logical view name to determine the target configuration item ID corresponding to the target logical view name. Then, the view resolver searches the server for the configuration information of the pre-associated and saved page template and its configuration item ID based on the target configuration item ID to obtain the configuration information of the target configuration item ID. The configuration information of the target configuration item ID includes at least the page template storage path, see Figure 1 As shown in ⑤, the view resolver obtains the page template from the storage system. Specifically, the view resolver obtains the target page template according to the page template storage path in the configuration information of the target configuration item ID. Figure 1 As shown in ⑥, the view resolver renders the web page based on the page template. Specifically, the view resolver uses the target page template to render the model object to obtain the target web page. Optionally, if the configuration information of the target configuration item ID includes template variables, when the target page template is used to render the model object to obtain the target web page, the template variables in the configuration information of the target configuration item ID can be added to the model object to obtain a new model object; the new model object is rendered using the target page template to obtain the target web page. This allows the page content of the web page to be changed by modifying the template variables, thereby improving the development efficiency of the web page. See Figure 1 As shown in step ⑦, after the server renders the web page, it sends the web page to the client for display.
[0051] For example, view mapping rules are pre-configured, that is, the mapping relationship between multiple configuration item IDs and multiple logical view names. Assume that the view mapping rules are: 1. "dataID (configuration item ID): go.index.version; viewname (logical view name): index.html". 2. "dataID (configuration item ID): redirect.index.version; viewname (logical view name): redirect.html". When the client sends an html request to the web application, the web application responds to the html request and obtains the ModelAndView object. The web application calls the view resolver to determine the configuration item ID based on the view mapping rules. For example, if the logical view name in the ModelAndView object is index.html, the determined configuration item ID is go.index.version. For another example, if the logical view name in the ModelAndView object is redirect.index.version, the determined configuration item ID is redirect.html. After determining the configuration item ID, the effective configuration information locally stored on the server that saves the web application is queried based on the determined configuration item ID to obtain the configuration information of the determined configuration item ID. The configuration information can include the page template storage path and template variables. Based on the page template storage path, the HTML template corresponding to the logical view name is retrieved from the storage system. The template variables in the configuration information are added to the model object in the ModelAndView object to generate a new model object. The retrieved HTML template is used to render the new model object to obtain the web page to be displayed, which is then pushed to the client for display.
[0052] The technical solution provided by the embodiments of this application ensures that, when a client accesses the server side of a web application, the client displays a web page corresponding to the page template of the effective configuration information based on the effective configuration information and its configuration item ID. This provides a new method for rendering web application pages, which greatly enables the relative independence of front-end and back-end development of web applications, thereby improving web application development efficiency.
[0053] Figure 3 This is a flow chart of another page processing method provided by an embodiment of the present application. Figure 3 , the method may include:
[0054] 301. In response to a development operation of a front-end developer, obtain a first page template developed for a first page, and save the first page template to a storage system.
[0055] 302. Obtain a first configuration item ID and first configuration information configured by a front-end developer for a first page template, and associate the first configuration item ID and the first configuration information and store them in a dynamic configuration library;
[0056] 303. Send the effective configuration information and its configuration item ID in the configuration information in the dynamic configuration library to the server of the Web application based on the MVC framework for associated storage.
[0057] For the implementation of each step in the embodiment of this method, please refer to the relevant introduction of the above embodiment, which will not be repeated here.
[0058] After the web application server associates and saves the effective configuration information and its configuration item ID, when the client accesses the web application server, the client can display the web page of the page template corresponding to the effective configuration information based on the effective configuration information and its configuration item ID. Figure 2 The embodiment shown.
[0059] The technical solution provided by the embodiment of the present application is that the page template developed by the front-end developer is no longer stored locally on the server side of the Web application, but is stored in a storage system independent of the server side of the Web application; the configuration item ID and configuration information configured by the front-end developer for the page template developed are stored in a dynamic configuration library, and the configuration information in the dynamic configuration library supports on-demand effectiveness. The dynamic configuration library associates and saves the effective configuration information and its configuration item ID to the server side of the Web application. In this way, when the client accesses the server side of the Web application, based on the effective configuration information and its configuration item ID, it can be ensured that the client displays the Web page of the page template corresponding to the effective configuration information. Therefore, since the page template is no longer stored locally on the server side of the Web application, it supports the front-end developer to modify the page template, provides support for the implementation of multi-version management of the page, can greatly make the front-end and back-end development of the Web application relatively independent, and improve the efficiency of Web application development.
[0060] Figure 4 This is a schematic diagram of the structure of a page processing device provided in an embodiment of the present application. The device can be composed of software and / or hardware, and is applied to the server side of a Web application in an MVC framework, and includes a controller layer 41, a model layer 42, and a view layer 43.
[0061] The controller layer 41 is used to respond to the access request sent by the client and call the model layer 42 to process the access request to obtain the model object and the target logical view name;
[0062] The view layer 43 is used to determine the target configuration item ID corresponding to the target logical view name through the view resolver according to the pre-established mapping relationship between the configuration item ID and the logical view name;
[0063] The view layer 43 is used to query the server locally for the configuration information of the page template and its configuration item ID that are pre-associated and stored from the dynamic configuration library according to the target configuration item ID through the view resolver to obtain the configuration information of the target configuration item ID;
[0064] The view layer 43 is used to obtain the target page template from the storage system through the view parser according to the page template storage path in the configuration information of the target configuration item ID, and use the target page template to render the model object to obtain the target Web page, and send the target Web page to the client for display.
[0065] Optionally, the view layer 43 uses the target page template to render the model object through the view parser to obtain the target web page. It is specifically used to: add the template variables in the configuration information of the target configuration item ID to the model object to obtain a new model object; and use the target page template to render the new model object to obtain the target web page.
[0066] Optionally, the storage system stores a first page template developed by a front-end developer for the first page; and the dynamic configuration library stores a first configuration item ID and first configuration information configured by the front-end developer for the first page template.
[0067] Optionally, the controller layer 41 is further configured to: receive configuration information of the effective page template and its configuration item ID sent by the dynamic configuration library; and associate and save the configuration information of the effective page template and its configuration item ID locally on the server.
[0068] Optionally, the controller layer 41 is also used to send the effective configuration item ID according to the dynamic configuration library before the server locally associates and saves the configuration information of the effective page template and its configuration item ID, and delete the configuration information corresponding to the effective configuration item ID saved locally on the server.
[0069] For the above embodiment Figure 4 The specific manner in which each module and unit performs operations in the device shown has been described in detail in the aforementioned embodiments and will not be elaborated on here.
[0070] Figure 5 This is a schematic diagram of the structure of another page processing device provided in an embodiment of the present application. The device can be composed of software and / or hardware. Figure 5 , the apparatus may include:
[0071] A first saving module 51 is configured to respond to a development operation of a front-end developer, obtain a first page template developed for a first page, and save the first page template to a storage system;
[0072] The second saving module 51 is used to obtain the first configuration item ID and the first configuration information configured by the front-end developer for the first page template, and associate the first configuration item ID and the first configuration information and store them in the dynamic configuration library;
[0073] The sending module 53 is used to send the effective configuration information and its configuration item ID in the configuration information in the dynamic configuration library to the server of the Web application based on the MVC framework for associated storage.
[0074] For the above embodiment Figure 5 The specific manner in which each module and unit performs operations in the device shown has been described in detail in the aforementioned embodiments and will not be elaborated on here.
[0075] It should be noted that the execution entity of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution entity of steps 401 to 403 can be device A; for another example, the execution entity of steps 401 and 402 can be device A, and the execution entity of step 403 can be device B; and so on.
[0076] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or may be executed in parallel. The sequence numbers of the operations, such as 401, 402, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to being different types.
[0077] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0078] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 6 As shown, the computer device includes: a memory 61 and a processor 62;
[0079] The memory 61 is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc.
[0080] The memory 61 can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random-access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0081] The processor 62 is coupled to the memory 61 and is configured to execute the computer program in the memory 61 to execute the steps in the page processing method.
[0082] Further optional, such as Figure 6 As shown, the computer device also includes: a communication component 63, a display 64, a power component 65, an audio component 66 and other components. Figure 6 Only some components are shown schematically, which does not mean that the computer equipment only includes Figure 6 In addition, Figure 6 The components in the dotted box are optional components, not mandatory components, and the specific components may depend on the product form of the computer device. The computer device of this embodiment can be implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone or an IOT (Internet of Things) device, or a server device such as a conventional server, a cloud server or a server array. If the computer device of this embodiment is implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, etc., it may include Figure 6 If the computer device of this embodiment is implemented as a server device such as a conventional server, a cloud server or a server array, it may not include the components in the dotted box; Figure 6 Components within the dotted box.
[0083] The detailed implementation process of the processor executing each action can be found in the relevant description in the aforementioned method embodiment or device embodiment, and will not be repeated here.
[0084] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement the steps that can be executed by a computer device in the above method embodiment.
[0085] Accordingly, an embodiment of the present application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the processor is enabled to implement the steps that can be executed by a computer device in the above method embodiment.
[0086] The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi (Wireless Fidelity), 2G (2 Generation, 2 Generation), 3G (3 Generation, 3 Generation), 4G (4 Generation, 4 Generation) / LTE (Long Term Evolution), 5G (5 Generation, 5 Generation) and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies.
[0087] The above-mentioned display includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0088] The power supply assembly provides power to various components of the device in which the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply assembly is located.
[0089] The above-mentioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as call mode, recording mode, and voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting audio signals.
[0090] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0091] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0092] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0094] In a typical configuration, a computing device includes one or more processors (Central Processing Unit, CPU), input / output interfaces, network interfaces, and memory.
[0095] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0096] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, Phase Change RAM (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0097] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0098] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A page processing method, characterized in that: A server-side web application based on a Model-View-Controller (MVC) framework includes a controller layer, a model layer, and a view layer. The method includes: The controller layer responds to the access request sent by the client and calls the model layer to process the access request to obtain the model object and the target logical view name; The view parser in the view layer determines the target configuration item ID corresponding to the target logical view name according to the pre-established mapping relationship between the configuration item identification ID and the logical view name; The view resolver queries the server locally for configuration information of a page template and its configuration item ID, which are pre-associated and stored from a dynamic configuration library, based on the target configuration item ID, to obtain the configuration information of the target configuration item ID. The view parser obtains the target page template from the storage system according to the page template storage path in the configuration information of the target configuration item ID, and renders the model object using the target page template to obtain the target Web page; The view resolver sends the target web page to the client so that the client displays the target web page.
2. The method according to claim 1, characterized in that The step of rendering the model object using the target page template to obtain a target web page includes: Add the template variable in the configuration information of the target configuration item ID to the model object to obtain a new model object; The new model object is rendered using the target page template to obtain the target Web page.
3. The method according to any one of claims 1 or 2, characterized in that The storage system stores a first page template developed by a front-end developer for a first page; and the dynamic configuration library stores a first configuration item ID and first configuration information configured by the front-end developer for the first page template.
4. The method according to any one of claims 1 or 2, characterized in that Also includes: Receive the configuration information of the effective page template and its configuration item ID sent by the dynamic configuration library; The configuration information of the effective page template and its configuration item ID are locally associated and saved on the server.
5. The method according to claim 4, characterized in that Before the server locally associates and saves the configuration information of the effective page template and its configuration item ID, the following steps are also included: According to the configuration item ID that has taken effect, the dynamic configuration library sends the configuration information corresponding to the configuration item ID that has taken effect, which is stored in the local history of the server, and is deleted.
6. A page processing method, characterized in that: include: In response to a development operation of a front-end developer, obtaining a first page template developed for a first page, and saving the first page template to a storage system; Obtaining a first configuration item identification ID and first configuration information configured by the front-end developer for the first page template, and associating the first configuration item ID and the first configuration information and storing them in a dynamic configuration library; The effective configuration information and its configuration item ID in the dynamic configuration library are sent to the server of the Web application based on the MVC framework for associated storage.
7. A page processing system, characterized in that: include: Front-end development, storage system, dynamic configuration library and server-side of Web applications based on the MVC framework; The front-end development end is configured to respond to a development operation of a front-end developer, obtain a first page template developed for the first page, and save the first page template to the storage system; and obtaining a first configuration item ID and first configuration information configured by the front-end developer for the first page template, and associating the first configuration item ID and the first configuration information and storing them in the dynamic configuration library; The dynamic configuration library is used to detect whether the configuration information in the dynamic configuration library is effective, and send the effective configuration information and its configuration item ID to the server; The server is used to associate and save the effective configuration information and its configuration item ID locally, so that the server can perform the steps in the method according to any one of claims 1 to 2.
8. A computer device, characterized in that: include: memory and processor; The memory is used to store computer programs; The processor is coupled to the memory and configured to execute the computer program to perform the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is enabled to implement the steps of the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, enables the processor to implement the steps of the method according to any one of claims 1 to 6.