CN110795675A - Single-application multi-domain-name difference display method - Google Patents

Single-application multi-domain-name difference display method Download PDF

Info

Publication number
CN110795675A
CN110795675A CN201911055793.6A CN201911055793A CN110795675A CN 110795675 A CN110795675 A CN 110795675A CN 201911055793 A CN201911055793 A CN 201911055793A CN 110795675 A CN110795675 A CN 110795675A
Authority
CN
China
Prior art keywords
configuration information
domain name
configuration
server
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911055793.6A
Other languages
Chinese (zh)
Other versions
CN110795675B (en
Inventor
贾小波
苌黄林
李洪坤
黄登军
任玉敏
邵传威
范卫云
刘自雪
顾雪梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHENGZHOU VCOM TECHNOLOGY Co Ltd
Original Assignee
ZHENGZHOU VCOM TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHENGZHOU VCOM TECHNOLOGY Co Ltd filed Critical ZHENGZHOU VCOM TECHNOLOGY Co Ltd
Priority to CN201911055793.6A priority Critical patent/CN110795675B/en
Publication of CN110795675A publication Critical patent/CN110795675A/en
Application granted granted Critical
Publication of CN110795675B publication Critical patent/CN110795675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a single-application multi-domain name difference display method, which comprises the steps that a manager increases configuration information of a plurality of domain names; storing the configuration information in an application memory, and simultaneously storing one copy on a server file; when a server receives an access request of a user, a server file is checked firstly to ensure that the global configuration information in the memory and the configuration information recorded by the server are kept synchronous and consistent; then acquiring a current request domain name of a user, and acquiring corresponding configuration information according to the current request domain name; rewriting the display information configuration in the template page; and obtaining the system domain name and the address loaded by the corresponding configuration data according to the obtained configuration information, and displaying differentiated effects and content according to the domain name requested by the user. The single application deployment structure is simple, different displays with the same function can be realized, the processing part can be reused, and the maintenance is easy. The method can realize different levels of differential customization, greatly improve the flexibility and reduce the repetition of functions in application as much as possible.

Description

Single-application multi-domain-name difference display method
Technical Field
The invention relates to the technical field of computers, in particular to a single-application multi-domain name difference display method.
Background
With the continuous development of the internet, B/S (browser-server, web application mode without client through a browser) architecture application is gradually becoming the main application service providing method. The user accesses different applications through different domain names. But the same or similar services may be provided by the service provider for multiple users, and these may also be the case where multiple different domain names access the same application. But some users may not meet the same display as others, and may provide some style, layout and even content change requirements, but the main functions of the application are not changed.
For such cases, although multiple sets of similar applications may be deployed and modified specifically, the hardware cost and maintenance cost may be increased significantly.
Each set of application aims at one set of display effect, and the flexibility is poor.
Each domain name corresponds to an independent application, and the development, operation and maintenance are too complex and the cost is high.
The multi-domain name corresponding application is provided by the service middleware or a plurality of servers, the modification and adjustment must restart the service or add and delete the application, the service needs to be interrupted, and the user experience is poor.
Disclosure of Invention
In order to solve the problems, a single-application multi-domain name difference display method is provided.
The object of the invention is achieved in the following way:
a single-application multi-domain name difference display method comprises the following steps:
the method comprises the following steps that configuration information of a plurality of domain names is added by a manager;
storing the configuration information in an application memory, storing one copy of the configuration information on a server file at the same time, and recording configuration information acquisition time by the server;
when the server receives an access request of a user, checking whether the time of the global configuration information in the memory exceeds the comparison check time, if so, checking a server file to keep the global configuration information in the memory and the configuration information recorded by the server synchronous and consistent;
then acquiring a current request domain name of a user, and acquiring corresponding configuration information according to the current request domain name;
obtaining template configuration according to the obtained configuration information and rewriting display information configuration in a template page;
and obtaining the system domain name and the address loaded by the corresponding configuration data according to the obtained configuration information, and generating a corresponding display list so as to display differentiated effects and contents according to the domain name requested by the user.
The configuration information comprises a data system address, a template file name, a LOGO file name, template configuration and display information configuration on the basis of the template.
The display information configuration comprises a Logo picture path, a page title, keywords and a customized script in a template page.
And acquiring the current request domain name of the user through http request header information.
A readable storage medium having stored thereon an executable program which, when executed by a processor, performs the steps of the above method.
An electronic device, comprising:
a memory having an executable program stored thereon;
a processor for executing the executable program in the memory to implement the steps of the above method.
The invention has the beneficial effects that: 1) the single application deployment structure is simple, different displays with the same function can be realized, the processing part can be reused, and the maintenance is easy.
2) The supported configuration addition of the new domain name takes effect immediately without service interruption.
3) The template page, the data source, the Logo, the keywords, the customized scripts and the like are controlled in multiple levels, so that different levels of differential customization can be realized, the flexibility is greatly improved, and the repetition of functions in application is reduced as much as possible.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
A single-application multi-domain name difference display method comprises the following steps:
the method comprises the following steps that configuration information of a plurality of domain names is added by a manager;
storing the configuration information in an application memory, storing one copy of the configuration information on a server file at the same time, and recording configuration information acquisition time by the server;
when the server receives an access request of a user, checking whether the time of the global configuration information in the memory exceeds the comparison check time, and if so, checking a server file to keep the global configuration information in the memory and the configuration information recorded by the server synchronous and consistent; the global configuration time refers to the time difference from the loading time of the global configuration information to the time when the configuration information is used, and the contrast check time refers to the minimum time for reloading the configuration configured by the configuration item, namely, when the program uses the configuration, whether the time difference from the loading time of the global configuration to the time when the configuration information is used exceeds the minimum time for reloading the configuration is checked, so that the configuration is ensured to be the latest configuration.
Then acquiring a current request domain name of a user, and acquiring corresponding configuration information according to the current request domain name;
obtaining template configuration according to the obtained configuration information and rewriting display information configuration in a template page;
and obtaining the system domain name and the address loaded by the corresponding configuration data according to the obtained configuration information, and generating a corresponding display list so as to display differentiated effects and contents according to the domain name requested by the user.
The configuration information comprises a data system address, a template file name, a LOGO file name, template configuration and display information configuration on the basis of the template.
The display information configuration comprises a Logo picture path, a page title, keywords and a customized script in a template page.
And acquiring the current request domain name of the user through http request header information. And obtaining the current request domain name of the user by adopting a javaServlet technology.
A readable storage medium having stored thereon an executable program which, when executed by a processor, performs the steps of the above method.
An electronic device, comprising:
a memory having an executable program stored thereon;
a processor for executing the executable program in the memory to implement the steps of the above method.
As shown in fig. 1, a single-application multi-domain name difference display method includes the following steps:
the method comprises the following steps that configuration information of a plurality of domain names is added by a manager;
the method comprises the steps of configuring json object character strings as contents according to key of domain names by using configuration information, storing the configuration information in an application memory in a key-value mapping mode, simultaneously storing one part of the configuration information in a server file, and recording configuration information acquisition time;
when the server receives an access request of a user, checking whether the time of the global configuration information in the memory exceeds the comparison check time, and if so, checking a server file to keep the global configuration information in the memory and the configuration information recorded by the server synchronous and consistent; the global configuration time refers to the time difference from the loading time of the global configuration information to the time when the configuration information is used, and the contrast check time refers to the minimum time for reloading the configuration configured by the configuration item, namely, when the program uses the configuration, whether the time difference from the loading time of the global configuration to the time when the configuration information is used exceeds the minimum time for reloading the configuration is checked, so that the configuration is ensured to be the latest configuration.
Then, acquiring a current request domain name of a user, and acquiring corresponding configuration information in a key-value mode according to the current request domain name;
obtaining template configuration according to the template file name and the Logo file name recorded in the obtained configuration information, rewriting position marks in a page template through javascript or jsp, and changing a Logo picture path, a page title and keywords in a template page;
the data loading of the data list in the page is carried out by acquiring an address through an interface mark, the interface mark consists of a system mark and an interface mark, the system mark determines a domain name of a corresponding system, and the interface mark determines a relative path after the domain name of the interface of the corresponding system; when data is loaded, the system domain name and the address of the corresponding interface are obtained according to the corresponding domain name configuration information, data loading is completed, and a corresponding display list is generated.
And finally, if the corresponding domain name configuration comprises the customized script configuration, executing the configured script code, and finally adjusting the page to finish the page content display.
According to the method and the device, the current request domain name of the user is obtained through http request header information, different template page codes and data system addresses are loaded through javaservlets according to the domain name, and customized change of partial pictures and contents is carried out through loading configuration on the basis of the template page, so that differentiated display of the contents is realized.
1) Besides the file storage on the server, the setting information corresponding to the domain name is stored in an application memory, and the timing synchronization is maintained to update the memory. Ensuring that configuration changes do not require service interruption.
2) And the redirection is carried out through the server side, so that the same function is the same relative application address no matter which display effect is displayed.
3) And the differentiation of the application layer of data display is realized by configuring the system domain name/address loaded by the data.
4) By configuring the Logo, the system keywords and other fixed position contents and replacing the fixed position contents during loading, the Logo, the system name and other mark contents are displayed differently under the condition of adopting the same template.
5) And by executing the configuration customized script, detail differentiation control on any position of the same template is realized.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various changes and modifications can be made without departing from the overall concept of the present invention, and these should also be considered as the protection scope of the present invention.

Claims (6)

1. A single-application multi-domain name difference display method is characterized by comprising the following steps: the method comprises the following steps:
the method comprises the following steps that configuration information of a plurality of domain names is added by a manager;
storing the configuration information in an application memory, storing one copy of the configuration information on a server file at the same time, and recording configuration information acquisition time by the server;
when the server receives an access request of a user, checking whether the time of the global configuration information in the memory exceeds the comparison check time, if so, checking a server file to keep the global configuration information in the memory and the configuration information recorded by the server synchronous and consistent;
then acquiring a current request domain name of a user, and acquiring corresponding configuration information according to the current request domain name;
obtaining template configuration according to the obtained configuration information and rewriting display information configuration in a template page;
and obtaining the system domain name and the address loaded by the corresponding configuration data according to the obtained configuration information, and generating a corresponding display list so as to display differentiated effects and contents according to the domain name requested by the user.
2. The single-application multi-domain name difference presentation method according to claim 1, characterized in that: the configuration information comprises a data system address, a template file name, a LOGO file name, template configuration and display information configuration on the basis of the template.
3. The single-application multi-domain name difference presentation method according to claim 2, characterized in that: the display information configuration comprises a Logo picture path, a page title, keywords and a customized script in a template page.
4. The single-application multi-domain name difference presentation method according to claim 1, characterized in that: and acquiring the current request domain name of the user through http request header information.
5. A readable storage medium having stored thereon an executable program, wherein the executable program, when executed by a processor, performs the steps of the method of any of claims 1-4.
6. An electronic device, comprising:
a memory having an executable program stored thereon;
a processor for executing the executable program in the memory to implement the steps of the method of any of claims 1-4.
CN201911055793.6A 2019-10-31 2019-10-31 Single-application multi-domain name difference display method Active CN110795675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055793.6A CN110795675B (en) 2019-10-31 2019-10-31 Single-application multi-domain name difference display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055793.6A CN110795675B (en) 2019-10-31 2019-10-31 Single-application multi-domain name difference display method

Publications (2)

Publication Number Publication Date
CN110795675A true CN110795675A (en) 2020-02-14
CN110795675B CN110795675B (en) 2023-04-28

Family

ID=69442427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055793.6A Active CN110795675B (en) 2019-10-31 2019-10-31 Single-application multi-domain name difference display method

Country Status (1)

Country Link
CN (1) CN110795675B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647767A (en) * 2013-12-05 2014-03-19 北京奇虎科技有限公司 Website information display method and apparatus
WO2017020776A1 (en) * 2015-07-31 2017-02-09 北京金山安全软件有限公司 Method and apparatus for obtaining keyword and for suggesting information on the basis of keyword
CN109088764A (en) * 2018-08-15 2018-12-25 郑州悉知信息科技股份有限公司 Access request processing method and relevant device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647767A (en) * 2013-12-05 2014-03-19 北京奇虎科技有限公司 Website information display method and apparatus
WO2017020776A1 (en) * 2015-07-31 2017-02-09 北京金山安全软件有限公司 Method and apparatus for obtaining keyword and for suggesting information on the basis of keyword
CN109088764A (en) * 2018-08-15 2018-12-25 郑州悉知信息科技股份有限公司 Access request processing method and relevant device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
左石城;向继;王平建;赵宇航;: "本地提供签名服务系统的设计与实现" *

Also Published As

Publication number Publication date
CN110795675B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US11799984B2 (en) Installable web applications
EP2815311B1 (en) Using an application cache to update resources of installed applications
AU2011101576B4 (en) Method and systems for generating and displaying a preview image of a content area
JP4857349B2 (en) Method, system, and computer program for providing asynchronous portal pages within a portal system
US8458246B2 (en) Web application framework method enabling the creation of applications that provide an interface with clients that is independent of scripting capability
WO2016026384A1 (en) Client page display method, device and system
US8667480B1 (en) Automatically updating browser extensions, and applications thereof
US20150113626A1 (en) Customized Log-In Experience
US10084878B2 (en) Systems and methods for hosted application marketplaces
US8682964B1 (en) Progressively loading network content
US20090288077A1 (en) Runtime versioning and distribution of dynamic web-elements
CN103685528A (en) Information displaying method and device
US20090083145A1 (en) Dynamic hosted advertising supporting multiple formats
USRE48851E1 (en) Thin client for mapping system
US8930443B1 (en) Distributed network page generation
US20150215374A1 (en) Delivering an update for a web application
US20140067913A1 (en) Replacement time based caching for providing server-hosted content
US20090006634A1 (en) Run-once static content generation using a descriptive file path
CN108920645A (en) Method, apparatus, smart machine and the storage medium that the smart machine page is shown
CN107958076A (en) A kind of method, apparatus, storage medium and electronic equipment for loading embedded webpage
CN110795675B (en) Single-application multi-domain name difference display method
CN110704777A (en) Method and system for implementing gray scale publishing
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
US11700435B2 (en) Systems and methods of universal video embedding
WO2010043024A1 (en) Web application framework for enabling optimum rendering performance on a client based upon detected parameters of the client

Legal Events

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