Method and device for accessing object storage service by online shopping mall system

By generating instance template plug-ins and storing them in Spring containers, the problem of uneven definitions of OSS service product API interfaces is solved, and OSS service access to the online mall system is realized, which reduces R&D costs and supports dynamic switching of OSS service providers.

CN120017719APending Publication Date: 2025-05-16WUHAN SHUZHIYUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411990720.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The API interface definitions provided by OSS service products in the prior art are uneven, resulting in the R&D cost investment of secondary development and transformation of various OSS products connected to online mall systems.

Method used

By obtaining the configuration information of the target object storage service, loading it into the preset target template, generating the instance template plug-in, and storing it in the Spring container. When receiving a request to access the target object storage service, the target object storage service is accessed according to the call of the instance template plug-in in the Spring container.

Benefits of technology

It realizes access to OSS service products by generating instance template plug-in using the configuration information of the target object storage service, reducing R&D costs and supporting real-time dynamic modification of OSS service provider configuration, so as to enable hot loading and switching of OSS service providers without restarting the deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017719A_ABST
    Figure CN120017719A_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and equipment for an online shopping mall system to access an object storage service, and a computer readable storage medium. The method comprises the steps of obtaining configuration information of a target object storage service; the obtained configuration information is loaded into a preset target template, an instance template plug-in is generated, and the instance template plug-in is stored in a Spring container; when a request for accessing a target object storage service is received, the target object storage service is accessed by calling the instance template plug-in in the Spring container, the instance template plug-in comprises API interface parameters and URI network paths, and the problem that in the related technology, API interface definitions provided by an OSS service product are uneven, and the service quality of the target object storage service is influenced is solved. The technical problem that the research and development cost investment of secondary development and transformation exists in access is solved, the OSS service product is accessed in the mode that the configuration information of the target object storage service is generated into the instance template plug-in, and the cost overhead is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, apparatus, device and computer-readable storage medium for an online shopping mall system to access an object storage service. Background Art

[0002] OSS is an object-oriented storage method that stores and manages data in the form of objects. Each object contains the data itself, metadata, and a unique identifier. The metadata includes the object name, size, and creation time. Users can access and manage OSS through APIs, consoles, or SDKs. OSS has the following characteristics: massive storage, high reliability, low cost, high security, and high scalability.

[0003] Object storage service (OSS) is essential for storing product images and videos in online shopping mall systems. OSS provides massive storage space, supports efficient storage and access, ensures data security and reliability, and supports on-demand billing to reduce storage costs. Through OSS, merchants can achieve refined permission management, efficient distribution, data encryption and privacy protection for product images and videos, as well as image and video processing and optimization. These features jointly improve the performance and user experience of online shopping mall systems, bringing significant cost-effectiveness and competitive advantages to merchants.

[0004] There are many types of OSS service products on the market. However, the API interface definitions provided by each type of OSS service product vary. After the OSS product selection is determined or the OSS product service provider is changed, there is a problem of R&D cost investment in secondary development and transformation when the online mall system connects with various OSS products. Summary of the invention

[0005] The present application provides a method, apparatus, device and computer-readable storage medium for an online shopping mall system to access an object storage service, which can solve the technical problem in the prior art that the API interface definitions provided by OSS service products are uneven, resulting in R&D cost investment for secondary development and transformation of access.

[0006] In a first aspect, an embodiment of the present application provides a method for an online shopping mall system to access an object storage service, the method for an online shopping mall system to access an object storage service comprising:

[0007] Get the configuration information of the target object storage service;

[0008] Generate an instance template plug-in by loading the acquired configuration information into a preset target template, and store the instance template plug-in in a Spring container;

[0009] When a request to access a target object storage service is received, the target object storage service is accessed by calling an instance template plug-in in the Spring container, wherein the instance template plug-in includes an API interface parameter and a URI network path.

[0010] In combination with the first aspect, in one embodiment, the configuration information includes general configuration information, wherein the general configuration information includes OSS service enablement status, OSS service provider enumeration, OSS service provider API access point URL prefix, OSS service provider resource access URL prefix, OSS service provider authentication access-key, OSS service provider authentication secret-key and default object bucket name.

[0011] In combination with the first aspect, in one implementation, the configuration information includes custom configuration information, wherein the custom configuration information includes object bucket naming rules, storage object naming rules, and service provider client default connection configuration information.

[0012] In combination with the first aspect, in one implementation, accessing the target object storage service according to calling the instance template plug-in in the Spring container includes:

[0013] Call the instance template plug-in in the Spring container;

[0014] The target object storage service is accessed through the general configuration information in the instance template plug-in, the service provider client default connection configuration information, API interface parameters and URI network path.

[0015] In combination with the first aspect, in one implementation, the preset template includes an object bucket creation program, an object bucket destruction program, an object file upload program, an object deletion program, an object copy program, an object information acquisition program, and an object access path acquisition program.

[0016] In combination with the first aspect, in one implementation, after accessing the target object storage service by calling the instance template plug-in in the Spring container, the method further includes:

[0017] The operation of creating an object bucket is performed by using the object bucket creation program in the instance template plug-in;

[0018] Execute the object bucket destroying operation through the object bucket destroying program in the instance template plug-in;

[0019] Execute the object file upload operation through the object file upload program in the example template plug-in;

[0020] Execute an object deletion operation through the object deletion program in the instance template plug-in;

[0021] Execute an object copy operation through the object copy program in the instance template plug-in;

[0022] The object information acquisition operation is performed through the object information acquisition program in the instance template plug-in.

[0023] In combination with the first aspect, in one implementation, before generating the instance template plug-in by loading the acquired configuration information into a preset target template, the method further includes:

[0024] Receiving a modification instruction, obtaining an added program and / or a deleted program in the modification instruction;

[0025] Based on the adding program and / or deleting program, the program in the preset template is modified to generate a preset target template, wherein the adding program and / or the deleting program includes at least one of creating an object bucket program, destroying an object bucket program, an object file uploading program, an object deleting program, an object copying program, an object information obtaining program and an object access path obtaining program.

[0026] In a second aspect, an embodiment of the present application provides a device for an online shopping mall system to access an object storage service, characterized in that the device for an online shopping mall system to access an object storage service comprises:

[0027] The acquisition module is used to obtain the configuration information of the target object storage service;

[0028] A generation module, used for generating an instance template plug-in by loading the acquired configuration information into a preset template, and storing the instance template plug-in in a Spring container;

[0029] The receiving and calling module is used to access the target object storage service by calling the instance template plug-in in the Spring container when receiving a request to access the target object storage service, wherein the instance template plug-in includes API interface parameters and URI network path.

[0030] In a third aspect, an embodiment of the present application provides a device for an online shopping mall system to access an object storage service, wherein the device for an online shopping mall system to access an object storage service comprises a processor, a memory, and a program for an online shopping mall system to access the object storage service, which is stored on the memory and can be executed by the processor. When the program for an online shopping mall system to access the object storage service is executed by the processor, the steps of the method for an online shopping mall system to access the object storage service as described above are implemented.

[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which is stored a program for an online shopping mall system to access an object storage service. When the program for an online shopping mall system to access an object storage service is executed by a processor, the steps of the method for an online shopping mall system to access an object storage service as described above are implemented.

[0032] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0033] By obtaining the configuration information of the target object storage service; by loading the obtained configuration information into the preset target template, generating an instance template plug-in, and storing the instance template plug-in in the Spring container; when receiving a request to access the target object storage service, accessing the target object storage service according to calling the instance template plug-in in the Spring container, wherein the instance template plug-in includes API interface parameters and URI network path, which solves the technical problem that the API interface definitions provided by OSS service products in related technologies are uneven, resulting in the R&D cost investment of secondary development and transformation for access, and realizes access to OSS service products by generating an instance template plug-in from the configuration information of the target object storage service, thereby reducing cost overhead. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a flowchart of a first embodiment of a method for an online shopping mall system to access an object storage service in this application;

[0035] Figure 2 This is a flow chart of a second embodiment of a method for an online shopping mall system to access an object storage service according to the present application;

[0036] Figure 3 This is a functional module diagram of an embodiment of a device for accessing an object storage service by an online shopping mall system of the present application;

[0037] Figure 4 This is a schematic diagram of the hardware structure of an online shopping mall system accessing an object storage service device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] First, some technical terms in the present application are explained to facilitate those skilled in the art to understand the present application.

[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0041] In a first aspect, an embodiment of the present application provides a method for an online shopping mall system to access an object storage service.

[0042] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for an online shopping mall system to access an object storage service. Figure 1 As shown, the method for the online shopping mall system to access the object storage service includes:

[0043] Step S10: Obtain configuration information of the target object storage service;

[0044] Exemplarily, the target object storage service includes configuration information of Alibaba OSS, Tencent COS, Huawei OBS, Qiniu Cloud OSS and MinIO, and the configuration information includes general configuration information and custom configuration information, wherein the general configuration information includes OSS service activation status, OSS service provider enumeration, OSS service provider API access point URL prefix, OSS service provider resource access URL prefix, OSS service provider authentication access-key, OSS service provider authentication secret-key and default object bucket name. Custom configuration information includes object bucket naming rules, storage object naming rules and service provider client default connection configuration information.

[0045] Step S20: Generate an instance template plug-in by loading the acquired configuration information into a preset target template, and store the instance template plug-in in a Spring container;

[0046] For example, when the online shopping mall system is started, the Spring framework @EnableConfigurationProperties annotation is used to load the acquired configuration information into the preset target template, generate an instance template plug-in, and store the instance template plug-in in the Spring container. The preset target template includes a program for creating an object bucket, a program for destroying an object bucket, a program for uploading an object file, a program for deleting an object, a program for copying an object, a program for acquiring object information, and a program for acquiring an object access path.

[0047] Step S30: upon receiving a request to access the target object storage service, access the target object storage service by calling the instance template plug-in in the Spring container, wherein the instance template plug-in includes API interface parameters and a URI network path.

[0048] Exemplarily, when a request to access a target object storage service is received, the target object storage service is accessed based on calling the general configuration information in the instance template plug-in in the Spring container, the service provider client default connection configuration information, API interface parameters and URI network path.

[0049] Specifically, after accessing the target object storage service by calling the instance template plug-in in the Spring container, the method further includes: executing an object bucket creation operation through the object bucket creation program in the instance template plug-in; executing an object bucket destruction operation through the object bucket destruction program in the instance template plug-in; executing an object file upload operation through the object file upload program in the instance template plug-in; executing an object deletion operation through the object deletion program in the instance template plug-in; executing an object copy operation through the object copy program in the instance template plug-in; and executing an object information acquisition operation through the object information acquisition program in the instance template plug-in.

[0050] Exemplarily, the instance template plug-in includes an object bucket creation program, an object bucket destruction program, an object file upload program, an object deletion program, an object copy program, an object information acquisition program, and an object access path acquisition program. The object bucket creation program in the instance template plug-in is used to perform the object bucket creation operation; the object bucket destruction operation is performed through the object bucket destruction program in the instance template plug-in; the object file upload operation is performed through the object file upload program in the instance template plug-in; the object deletion operation is performed through the object deletion program in the instance template plug-in; the object copy operation is performed through the object copy program in the instance template plug-in; and the object information acquisition operation is performed through the object information acquisition program in the instance template plug-in.

[0051] In this embodiment, by obtaining the configuration information of the target object storage service; by loading the obtained configuration information into a preset template, generating an instance template plug-in, and storing the instance template plug-in in a Spring container; when a request to access the target object storage service is received, the target object storage service is accessed by calling the instance template plug-in in the Spring container, wherein the instance template plug-in includes API interface parameters and URI network path, thereby solving the technical problem that the API interface definitions provided by OSS service products in related technologies are uneven, resulting in the investment in R&D costs for secondary development and transformation of access, and achieving access to OSS service products by generating an instance template plug-in from the configuration information of the target object storage service, thereby reducing cost overhead.

[0052] In one embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the method for an online shopping mall system to access an object storage service in this application. Figure 2 As shown, the method for the online shopping mall system to access the object storage service includes:

[0053] Step S11: Obtain configuration information of the target object storage service;

[0054] Exemplarily, the target object storage service includes configuration information of Alibaba OSS, Tencent COS, Huawei OBS, Qiniu Cloud OSS and MinIO, and the configuration information includes general configuration information and custom configuration information, wherein the general configuration information includes OSS service activation status, OSS service provider enumeration, OSS service provider API access point URL prefix, OSS service provider resource access URL prefix, OSS service provider authentication access-key, OSS service provider authentication secret-key and default object bucket name. Custom configuration information includes object bucket naming rules, storage object naming rules and service provider client default connection configuration information.

[0055] Step S12: receiving a modification instruction, obtaining an added program and / or a deleted program in the modification instruction;

[0056] Step S13: Based on the adding program and / or deleting program, the program in the preset template is modified to generate a preset target template, wherein the adding program and / or the deleting program includes at least one of creating an object bucket program, destroying an object bucket program, an object file uploading program, an object deleting program, an object copying program, an object information obtaining program, and an object access path obtaining program.

[0057] Exemplarily, the adding program and / or deleting program needs to be manually defined in advance, and the target object storage service satisfies the operation functions corresponding to the adding program.

[0058] Step S14: Generate an instance template plug-in by loading the acquired configuration information into a preset target template, and store the instance template plug-in in a Spring container;

[0059] For example, when the online shopping mall system is started, the Spring framework @EnableConfigurationProperties annotation is used to load the acquired configuration information into the preset target template, generate an instance template plug-in, and store the instance template plug-in in the Spring container. The preset target template includes a program for creating an object bucket, a program for destroying an object bucket, a program for uploading an object file, a program for deleting an object, a program for copying an object, a program for acquiring object information, and a program for acquiring an object access path.

[0060] Step S15: upon receiving a request to access the target object storage service, access the target object storage service by calling the instance template plug-in in the Spring container, wherein the instance template plug-in includes API interface parameters and a URI network path.

[0061] Exemplarily, when a request to access a target object storage service is received, the target object storage service is accessed based on calling the general configuration information in the instance template plug-in in the Spring container, the service provider client default connection configuration information, API interface parameters and URI network path.

[0062] Specifically, after accessing the target object storage service by calling the instance template plug-in in the Spring container, the method further includes: executing an object bucket creation operation through the object bucket creation program in the instance template plug-in; executing an object bucket destruction operation through the object bucket destruction program in the instance template plug-in; executing an object file upload operation through the object file upload program in the instance template plug-in; executing an object deletion operation through the object deletion program in the instance template plug-in; executing an object copy operation through the object copy program in the instance template plug-in; and executing an object information acquisition operation through the object information acquisition program in the instance template plug-in.

[0063] Exemplarily, the instance template plug-in includes an object bucket creation program, an object bucket destruction program, an object file upload program, an object deletion program, an object copy program, an object information acquisition program, and an object access path acquisition program. The object bucket creation program in the instance template plug-in is used to perform the object bucket creation operation; the object bucket destruction operation is performed through the object bucket destruction program in the instance template plug-in; the object file upload operation is performed through the object file upload program in the instance template plug-in; the object deletion operation is performed through the object deletion program in the instance template plug-in; the object copy operation is performed through the object copy program in the instance template plug-in; and the object information acquisition operation is performed through the object information acquisition program in the instance template plug-in.

[0064] In this embodiment, the configuration information of the target object storage service is obtained; a modification instruction is received, and the program addition and / or deletion in the modification instruction is obtained; the program in the preset target template is modified based on the program addition and / or deletion to generate a preset target template; an instance template plug-in is generated by loading the obtained configuration information into the preset target template, and the instance template plug-in is stored in a Spring container; when a request to access the target object storage service is received, the target object storage service is accessed according to calling the instance template plug-in in the Spring container, wherein the instance template plug-in includes API interface parameters and URI network path, so as to solve the technical problem in the prior art that the API interface definitions provided by OSS service products are uneven, resulting in the R&D cost investment of secondary development and transformation for access, and the OSS service provider configuration in the preset model can be modified in real time to achieve hot loading and switching of OSS service providers without restarting the deployment.

[0065] In a second aspect, an embodiment of the present application also provides a device for an online shopping mall system to access an object storage service.

[0066] In one embodiment, referring to Figure 3 , Figure 3 This is a functional module diagram of an embodiment of an online shopping mall system accessing an object storage service device of this application. Figure 3 As shown, the object storage service device for the online shopping mall system to access includes:

[0067] The acquisition module 10 is used to acquire the configuration information of the target object storage service;

[0068] A generating module 20, configured to generate an instance template plug-in by loading the acquired configuration information into a preset target template, and store the instance template plug-in in a Spring container;

[0069] The receiving and calling module 30 is used to access the target object storage service by calling the instance template plug-in in the Spring container when receiving a request to access the target object storage service, wherein the instance template plug-in includes API interface parameters and URI network path.

[0070] Furthermore, in one embodiment, the configuration information includes general configuration information, wherein the general configuration information includes OSS service enablement status, OSS service provider enumeration, OSS service provider API access point URL prefix, OSS service provider resource access URL prefix, OSS service provider authentication access-key, OSS service provider authentication secret-key and default object bucket name.

[0071] Furthermore, in one embodiment, the configuration information includes custom configuration information, wherein the custom configuration information includes object bucket naming rules, storage object naming rules and service provider client default connection configuration information.

[0072] Furthermore, in one embodiment, the receiving and calling module 30 is used to:

[0073] Call the instance template plug-in in the Spring container;

[0074] The target object storage service is accessed through the general configuration information in the instance template plug-in, the service provider client default connection configuration information, API interface parameters and URI network path.

[0075] Furthermore, in one embodiment, the preset template includes an object bucket creation program, an object bucket destruction program, an object file upload program, an object deletion program, an object copy program, an object information acquisition program, and an object access path acquisition program.

[0076] Further, in one embodiment, after accessing the target object storage service by calling the instance template plug-in in the Spring container, the method further includes:

[0077] The operation of creating an object bucket is performed by using the object bucket creation program in the instance template plug-in;

[0078] Execute the object bucket destroying operation through the object bucket destroying program in the instance template plug-in;

[0079] Execute the object file upload operation through the object file upload program in the example template plug-in;

[0080] Execute an object deletion operation through the object deletion program in the instance template plug-in;

[0081] Execute an object copy operation through the object copy program in the instance template plug-in;

[0082] The object information acquisition operation is performed through the object information acquisition program in the instance template plug-in.

[0083] Furthermore, in one embodiment, the apparatus for accessing the object storage service by the online shopping mall system further includes a new module for:

[0084] Receiving a modification instruction, obtaining an added program and / or a deleted program in the modification instruction;

[0085] Based on the adding program and / or deleting program, the program in the preset template is modified to generate a preset target template, wherein the adding program and / or the deleting program includes at least one of creating an object bucket program, destroying an object bucket program, an object file uploading program, an object deleting program, an object copying program, an object information obtaining program and an object access path obtaining program.

[0086] Among them, the functional implementation of each module in the above-mentioned device for online shopping mall system to access object storage service corresponds to the steps in the above-mentioned method embodiment for online shopping mall system to access object storage service, and its functions and implementation processes are not repeated here one by one.

[0087] On the third aspect, an embodiment of the present application provides a device for an online shopping mall system to access an object storage service. The device for an online shopping mall system to access an object storage service may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0088] Reference Figure 4 , Figure 4 The hardware structure diagram of the device for accessing the object storage service by the online shopping mall system involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the device for accessing the object storage service by the online shopping mall system may include a processor, a memory, a communication interface, and a communication bus.

[0089] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0090] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces, which are used to interconnect the devices inside the object storage service device for the online mall system to access, and interfaces used to interconnect the object storage service device for the online mall system to access other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0091] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0092] The processor may be a general-purpose processor, which may call a program stored in a memory for an online shopping mall system to access an object storage service, and execute the method for an online shopping mall system to access an object storage service provided in an embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the program for an online shopping mall system to access an object storage service is called may refer to the various embodiments of the method for an online shopping mall system to access an object storage service of the present application, which will not be described in detail here.

[0093] Those skilled in the art will understand that Figure 4 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0094] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0095] The computer-readable storage medium of the present application stores a program for an online shopping mall system to access an object storage service, wherein when the program for an online shopping mall system to access an object storage service is executed by a processor, the steps of the method for an online shopping mall system to access an object storage service as described above are implemented.

[0096] Among them, the method implemented when the program for the online shopping mall system to access the object storage service is executed can refer to the various embodiments of the method for the online shopping mall system to access the object storage service of this application, and will not be repeated here.

[0097] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0098] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0099] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0100] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0101] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0103] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for an online shopping mall system to access an object storage service, characterized in that: The method for an online shopping mall system to access an object storage service includes: Get the configuration information of the target object storage service; Generate an instance template plug-in by loading the acquired configuration information into a preset target template, and store the instance template plug-in in a Spring container; When a request to access a target object storage service is received, the target object storage service is accessed by calling an instance template plug-in in the Spring container, wherein the instance template plug-in includes an API interface parameter and a URI network path.

2. The method for an online shopping mall system to access an object storage service according to claim 1, characterized in that: The configuration information includes general configuration information, wherein the general configuration information includes OSS service activation status, OSS service provider enumeration, OSS service provider API access point URL prefix, OSS service provider resource access URL prefix, OSS service provider authentication access-key, OSS service provider authentication secret-key and default object bucket name.

3. The method for an online shopping mall system to access an object storage service according to claim 1, characterized in that: The configuration information includes custom configuration information, wherein the custom configuration information includes object bucket naming rules, storage object naming rules and service provider client default connection configuration information.

4. The method for an online shopping mall system to access an object storage service according to claim 1, characterized in that: The accessing the target object storage service according to calling the instance template plug-in in the Spring container includes: Call the instance template plug-in in the Spring container; The target object storage service is accessed through the general configuration information in the instance template plug-in, the service provider client default connection configuration information, API interface parameters and URI network path.

5. The method for an online shopping mall system to access an object storage service according to claim 1, characterized in that: The preset template includes a program for creating an object bucket, a program for destroying an object bucket, a program for uploading an object file, a program for deleting an object, a program for copying an object, a program for acquiring object information, and a program for acquiring an object access path.

6. The method for an online shopping mall system to access an object storage service according to claim 1, characterized in that: After accessing the target object storage service according to calling the instance template plug-in in the Spring container, the method further includes: The operation of creating an object bucket is performed by using the object bucket creation program in the instance template plug-in; Execute the object bucket destroying operation through the object bucket destroying program in the instance template plug-in; Execute the object file upload operation through the object file upload program in the example template plug-in; Execute an object deletion operation through the object deletion program in the instance template plug-in; Execute an object copy operation through the object copy program in the instance template plug-in; The object information acquisition operation is performed through the object information acquisition program in the instance template plug-in.

7. The method for an online shopping mall system to access an object storage service according to claim 1, characterized in that: Before the example template plug-in is generated by loading the acquired target configuration information into a preset template, the method further includes: Receiving a modification instruction, obtaining an added program and / or a deleted program in the modification instruction; Based on the adding program and / or deleting program, the program in the preset template is modified to generate a preset target template, wherein the adding program and / or the deleting program includes at least one of creating an object bucket program, destroying an object bucket program, an object file uploading program, an object deleting program, an object copying program, an object information obtaining program and an object access path obtaining program.

8. A device for accessing an object storage service in an online shopping mall system, characterized in that: The object storage service device for the online shopping mall system to access includes: The acquisition module is used to obtain the configuration information of the target object storage service; A generation module, used for generating an instance template plug-in by loading the acquired configuration information into a preset target template, and storing the instance template plug-in in a Spring container; The receiving and calling module is used to access the target object storage service by calling the instance template plug-in in the Spring container when receiving a request to access the target object storage service, wherein the instance template plug-in includes API interface parameters and URI network path.

9. A device for accessing object storage services in an online shopping mall system, characterized in that: The device for an online shopping mall system to access an object storage service comprises a processor, a memory, and a program for an online shopping mall system to access an object storage service, which is stored on the memory and can be executed by the processor. When the program for an online shopping mall system to access an object storage service is executed by the processor, the steps of the method for an online shopping mall system to access an object storage service as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for an online shopping mall system to access an object storage service. When the program for an online shopping mall system to access an object storage service is executed by a processor, the steps of the method for an online shopping mall system to access an object storage service as described in any one of claims 1 to 7 are implemented.