Component configuration method and device, equipment and medium

CN119404207APending Publication Date: 2025-02-07BOE TECHNOLOGY GROUP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380008931.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the Spring Boot project, the setting of component configuration items requires manual operations, resulting in inefficiency because the Spring Initializr tool cannot automatically generate component configuration items, and technicians need to find and set them from numerous configuration items.

Method used

Provide a component configuration method and device that obtains the configuration parameters of target project components through preset component configuration information, displays the component configuration interface to set parameter values, and generates configuration files, reducing the user's manual search and setting steps.

Benefits of technology

The efficiency of component configuration is improved. Users do not need to manually search for configuration parameter values ​​and can quickly complete component configuration, simplifying the development process of Spring Boot projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119404207A_ABST
    Figure CN119404207A_ABST
Patent Text Reader

Abstract

The invention provides a component configuration method and device, equipment and a medium. On the basis of the component configuration information capable of indicating the corresponding relationship between different project components and the configuration parameters, the configuration parameters corresponding to the target project component to be configured are directly obtained, so that the component configuration interface is displayed on the basis of the target project component and the configuration parameters corresponding to the target project component; therefore, a user can set the parameter value of the configuration parameter corresponding to the target project component through the component configuration interface, and then the configuration file is generated based on the target project component and the parameter value set through the component configuration interface. The parameter values of the configuration parameters needing to be configured for each component can be set without manual search of a user, and the component configuration efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Component configuration method, device, equipment and medium Technical Field

[0001] The present application relates to the field of display computer technology, and in particular to a component configuration method, apparatus, device, and medium. Background Art

[0002] Spring Boot, an open-source framework, simplifies the building and development of Spring applications by eliminating the need for large numbers of Extensible Markup Language (XML) files and simplifying complex dependency management within Spring applications. Spring Initializr, an official Spring tool, can be used to initialize Spring Boot projects and automatically generate a project structure for them.

[0003] The Spring Boot framework integrates various types of components, such as web components, template engine components, security components, and database components. Each component requires setting component coordinates and configuration items. However, the Spring Initializr tool can only introduce component coordinates in the project file and cannot automatically generate component configuration items. The setting of component configuration items still depends on manual operation of technicians.

[0004] In the above implementation process, when setting configuration items for components, technical personnel are required to search for the configuration items to be set from among numerous component configuration items, which makes the component configuration process less efficient.

[0005] Summary of the Invention

[0006] The present application provides a component configuration method, apparatus, device and medium to address deficiencies in related technologies.

[0007] According to a first aspect of an embodiment of the present application, a component configuration method is provided, the method comprising:

[0008] Based on the pre-set component configuration information, the configuration parameters corresponding to the target project component to be configured are obtained. The component configuration information is used to indicate the configuration parameters corresponding to each project component.

[0009] Displaying a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, where the component configuration interface is used to set parameter values ​​of the configuration parameters corresponding to the target project component;

[0010] Generates configuration files based on the target project components and the parameter values ​​set through the component configuration interface.

[0011] According to a second aspect of an embodiment of the present application, a component configuration device is provided, the device comprising:

[0012] An acquisition module is used to acquire configuration parameters corresponding to the target project component to be configured based on pre-set component configuration information, where the component configuration information is used to indicate the configuration parameters corresponding to each project component;

[0013] A display module is used to display a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, where the component configuration interface is used to set parameter values ​​of the configuration parameters corresponding to the target project component;

[0014] The generation module is used to generate configuration files based on the target project components and the parameter values ​​set through the component configuration interface.

[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the computer program, the operations performed by the component configuration method provided in the first aspect above are implemented.

[0016] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a program is stored. When the program is executed by a processor, the operations performed by the component configuration method provided in the first aspect above are implemented.

[0017] According to the above embodiments, the present application directly obtains the configuration parameters corresponding to the target project component to be configured based on the component configuration information that can indicate the correspondence between different project components and configuration parameters, thereby displaying the component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, so that the user can set the parameter values ​​of the configuration parameters corresponding to the target project component through the component configuration interface, and then generate a configuration file based on the target project component and the parameter values ​​set through the component configuration interface. Through the solution provided by the present application, the parameter values ​​of the configuration parameters that need to be configured for each component can be set without the user having to manually search, thereby improving the efficiency of component configuration.

[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] FIG1 is a flowchart illustrating a component configuration method according to an embodiment of the present application.

[0021] FIG2 is a schematic diagram of a component selection interface according to an embodiment of the present application.

[0022] FIG3 is a schematic diagram of a component configuration interface according to an embodiment of the present application.

[0023] FIG4 is a schematic diagram of an interface for generating a configuration file according to an embodiment of the present application.

[0024] FIG5 is a flowchart illustrating a component configuration method according to an embodiment of the present application.

[0025] FIG6 is a system architecture diagram of a component configuration system according to an embodiment of the present application.

[0026] FIG7 is a block diagram of a component configuration device according to an embodiment of the present application.

[0027] FIG8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0029] This application provides a component configuration method for helping relevant technical personnel to more quickly find the configuration items of each component in the software application during the development process of the software application, thereby improving the efficiency of component configuration.

[0030] The software applications mentioned above may be various types of software applications. For example, the software application may be a Spring application, or the software application may be another type of application. This application does not limit the specific type of the software application.

[0031] Taking Spring applications as an example, a Spring application involves multiple components, including web components, template engine components, security components, and database components. Each component type has numerous configuration items. Typically, technical personnel can only memorize a few common configurations, and detailed configuration settings require them to search the official documentation for the component, which is time-consuming, labor-intensive, and inefficient. Therefore, the component configuration method provided in this application can help technical personnel more quickly find the configuration items for each component in a Spring application, thereby improving component configuration efficiency.

[0032] The above is only an exemplary description of the application scenario of the present application and does not constitute a limitation on the application scenario of the present application. In more possible implementation methods, the component configuration method provided by the present application can also be applied to other scenarios involving the component configuration process. The present application does not limit the specific application scenario of the component configuration method.

[0033] The above-mentioned component configuration method can be executed by an electronic device, and the electronic device can be a terminal device, such as a desktop computer, a portable computer, a laptop computer, a smart phone, a tablet computer, a smart watch, etc. Optionally, the electronic device can also be other types of devices. This application does not limit the device type of the electronic device.

[0034] The above-mentioned component configuration method can be directly deployed to the public network environment through the cloud server to obtain a URL that can provide the usage function of the above-mentioned component configuration method. Relevant technical personnel can use the above-mentioned component configuration method through the URL on an online platform (such as a browser platform) to realize the component configuration of the project they are developing.

[0035] Alternatively, the above-mentioned component configuration method can be encapsulated as a software development kit (SDK). Relevant technical personnel can integrate the above-mentioned component configuration method into the development software they use by downloading the SDK and installing it, so that relevant technical personnel can use the above-mentioned component configuration method to configure the components of the project they are developing when developing software applications through the development software. In addition, the installation process of the SDK is simple, which can reduce the operation difficulty of relevant technical personnel.

[0036] When encapsulating the component configuration method into an SDK, the functional code used to implement the component configuration method can be encapsulated as a Maven dependency to achieve SDK encapsulation. Optionally, the encapsulated SDK can provide an access interface (such as a Web access interface) so that development software integrated with the SDK can interact with the SDK through the access interface to implement a series of operations such as configuration item scanning and project file writing, thereby achieving the purpose of quickly configuring project components.

[0037] Compared with traditional integrated development environment (IDE) plug-ins, the above two deployment methods can eliminate the tedious steps of installing plug-ins, reduce operating costs, and improve component deployment efficiency.

[0038] After introducing the application scenarios and implementation environment of this application, the component configuration method provided by this application is introduced in detail below.

[0039] Referring to FIG. 1 , FIG. 1 is a flow chart of a component configuration method according to an embodiment of the present application. As shown in FIG. 1 , the method includes:

[0040] Step 101: Based on pre-set component configuration information, obtain configuration parameters corresponding to the target project component to be configured. The component configuration information is used to indicate the configuration parameters corresponding to each project component.

[0041] It should be noted that due to the different properties and functions of different components, each component has its own corresponding series of configuration parameters. In addition, the corresponding configuration parameters for different versions of the same component may also be different. Therefore, the configuration parameters corresponding to each project component (that is, component configuration information) can be maintained so that when there is a component configuration requirement, it can be automatically retrieved in the maintained component configuration information to quickly find the corresponding configuration parameters.

[0042] Step 102: Display a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component. The component configuration interface is used to set parameter values ​​of the configuration parameters corresponding to the target project component.

[0043] After retrieving the configuration parameters corresponding to the target project component, a component configuration interface is provided based on the target project component and the configuration parameters corresponding to the target project component, so that the user can directly configure the parameter values ​​for the configuration parameters through the component configuration interface to improve component configuration efficiency.

[0044] Step 103: Generate a configuration file based on the target project components and the parameter values ​​set through the component configuration interface.

[0045] This application is based on component configuration information that can indicate the correspondence between different project components and configuration parameters, and directly obtains the configuration parameters corresponding to the target project component to be configured, thereby displaying a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, so that the user can set the parameter values ​​of the configuration parameters corresponding to the target project component through the component configuration interface, and then generate a configuration file based on the target project component and the parameter values ​​set through the component configuration interface. Through the solution provided by this application, the parameter values ​​of the configuration parameters that need to be configured for each component can be set without the user having to manually search, thereby improving the efficiency of component configuration.

[0046] After introducing the basic implementation process of the component configuration method provided by this application, various optional embodiments of this application are introduced below.

[0047] It should be noted that different projects require different project components to be configured. Therefore, before obtaining the configuration parameters corresponding to the target project components to be configured in step 101, the following steps may also be included:

[0048] Step 100: Obtain the target project component to be configured.

[0049] Optionally, step 100 may be implemented as follows:

[0050] In a possible implementation, a component selection interface is displayed and at least one candidate project component is displayed in the component selection interface. Based on a component selection operation in the component selection interface, the selected candidate project component is acquired as the target project component.

[0051] By providing a component selection interface and a display function of candidate project components through the component selection interface, users can select from the candidate project components displayed on the component selection interface according to actual project requirements to determine the target project components.

[0052] Optionally, different types of project components can be classified and displayed through the component selection interface. For example, multiple component types can be displayed in the component selection interface. The user can trigger any component type to view the alternative project components included under this component type. The electronic device can respond to the user's operation and display the corresponding alternative project components under the triggered component type for the user to select.

[0053] Taking the selection of target project components for the development process of a Spring application as an example, see Figure 2, which is an interface diagram of a component selection interface shown in accordance with an embodiment of the present application. In the component selection interface shown in Figure 2, there are multiple component types displayed, such as development tool components, Web components, template engine components, database components, message queue components, and security components. Users can select from the component types displayed in the component selection interface shown in Figure 2 according to actual project configuration requirements. If the user triggers the component type of the development tool component, two alternative project components, Lombok and DevTools, will be displayed in the component selection interface as shown in Figure 2 for the user to choose. As shown in Figure 2, the user has selected the alternative project component Lombok, and a "√" is displayed in front of the alternative project component Lombok to indicate that the component is in a checked state; if the user triggers the component type of the Web component, three alternative project components, Spring Web, Spring Reactive Web, and Spring Session, will be displayed in the component selection interface as shown in Figure 2 for the user to choose. As shown in Figure 2, the user has selected the alternative project component Spring Web, and a "√" is displayed in front of the alternative project component Spring Web to indicate that the component is in a checked state.

[0054] Among them, Lombok is a Java development plug-in that can be automatically inserted into editors and build tools, allowing Java developers to eliminate lengthy and tedious codes in business projects through some annotations defined by Lombok. Just by adding an annotation defined by Lombok, the class defined by the developer in the code can have a full-featured builder and automatic variable recording, etc.

[0055] DevTools is a set of web development tools that can be displayed next to the web page rendered in the browser. DevTools can provide powerful features for inspecting and debugging web pages and web applications. You can even edit source files and create website projects in the DevTools environment. By using DevTools, you can use real-time tools with a visual interface to inspect, adjust, and change the style of elements in web pages; you can also simulate how the website behaves on different devices and simulate mobile environments with different network conditions; you can also debug JavaScript using breakpoint debugging and a real-time console; you can also find accessibility, performance, compatibility, and security issues in your product and use DevTools to fix accessibility issues you find, and more.

[0056] Spring Web is a web framework based on the Model View Controller (MVC) architecture. It receives external requests, parses parameters, and passes them to the service layer to facilitate data transmission between the frontend and backend. As a module of the Spring Framework, Spring Web can be seamlessly integrated with the Spring Framework.

[0057] Spring Reactive Web is a complete server-side technology framework that includes a web container and a web application framework.

[0058] Spring Session is a subproject within the Spring family that provides a set of application programming interfaces (APIs) for managing user session information, offering a session sharing solution. Spring Session can be integrated into the Spring framework quickly, easily, and seamlessly.

[0059] In addition, if the user triggers the component type of template engine component in the component selection interface as shown in Figure 2, the component selection interface as shown in Figure 2 will display alternative project components such as Velocity, FreeMarker, and Thymeleaf for the user to select; if the user triggers the component type of database component in the component selection interface as shown in Figure 2, the component selection interface as shown in Figure 2 will display alternative project components such as Redis, PostgreSQL, Sybase, and FoxPro for the user to select; if the user triggers the component type of message queue component in the component selection interface as shown in Figure 2, the component selection interface as shown in Figure 2 will display alternative project components such as JMS, Kafka, RocketMQ, and AMQP for the user to select; if the user triggers the component type of security component in the component selection interface as shown in Figure 2, the component selection interface as shown in Figure 2 will display alternative project components such as SourceCheck, Quartz, and AppDetectivePro for the user to select.

[0060] Velocity is a JAVA-based template engine that allows users to reference objects defined by JAVA code simply by using the template language.

[0061] FreeMarker is a general-purpose tool based on templates and data that can be used to generate output text such as web pages, emails, configuration files, source code, etc.

[0062] Thymeleaf is a template engine for rendering content in Extensible Markup Language (XML), Extensible HyperText Markup Language (XHTML), and HyperText Markup Language 5.0 (HTML5). Thymeleaf can be opened directly in a browser to view the static effects of the page, or accessed through a web application to view the dynamic effects of the page.

[0063] Redis (Remote Dictionary Server) is an open source log-based key-value database written in ANSI C, which supports networking, can be memory-based or persistent, and provides API interfaces in multiple programming languages.

[0064] PostgreSQL is a free, feature-rich object-relational database management system (ORDBMS). It supports most of the Structured Query Language (SQL) standard and provides many other modern features, such as complex queries, foreign keys, triggers, views, transactional integrity, and multi-version concurrency control. PostgreSQL is also extensible in many ways, such as by adding new data types, functions, operators, aggregate functions, indexing methods, and procedural languages. Furthermore, due to its flexible license, anyone can use, modify, and redistribute PostgreSQL for any purpose, free of charge.

[0065] Sybase is a relational database system that provides an application programming interface (API) and can integrate with non-Sybase data sources and servers. It allows data replication between multiple databases, making it suitable for building multi-tier applications. The system features a comprehensive set of triggers, stored procedures, rules, and integrity definitions, supports optimized queries, and offers strong data security.

[0066] JMS (Java Message Service) is a message-oriented middleware (MOM) API for the Java platform. It is used to send messages between two applications or within a distributed system for asynchronous communication. JMS is platform-independent and is supported by most MOM providers.

[0067] Kafka is a distributed, partitioned, multi-replicated distributed messaging system coordinated by the distributed application coordination service (Zookeeper). Kafka can process large amounts of data in real time to meet various demand scenarios.

[0068] RocketMQ is a distributed messaging middleware with low latency, high concurrency, high availability, and high reliability. It provides asynchronous decoupling and peak-load shifting capabilities for distributed application systems, while also offering the massive message accumulation, high throughput, and reliable retry capabilities required by internet applications.

[0069] AMQP, or Advanced Message Queuing Protocol, is an application-layer standard that provides unified messaging services. It's an open standard for application-layer protocols designed for message-oriented middleware. Clients and message-oriented middleware based on this protocol can exchange messages without being restricted by client / middleware, product differences, or development languages.

[0070] SourceCheck, also known as the open source component security and compliance management platform (SourceCheck for short), is a Software Compostition Analysis (SCA) product provided by Open Source Network Security. It is used for third-party component security management, including enterprise component usage management, component usage compliance auditing, new vulnerability awareness and early warning, open source code auditing, etc., and supports source code and release package detection.

[0071] Quartz is a feature-rich task calling system that can create dozens, hundreds, or even thousands of simple or complex tasks.

[0072] AppDetectivePro is a network-based vulnerability assessment tool that scans database applications to identify, review, report, and patch security vulnerabilities and misconfigurations to protect organizations from internal and external database threats.

[0073] It should be noted that FIG2 is only an exemplary form of the component selection interface and does not constitute a limitation on the specific display form of the component selection interface. This application does not limit the specific display form of the component selection interface.

[0074] In addition, it should be noted that in the process of page development, multiple types of components may be involved. In the component selection interface shown in Figure 2, only six component types, namely development tool components, web components, template engine components, database components, message queue components and security components, are used as examples for illustration. More component types are replaced by "****". This application does not limit the specific component types.

[0075] In another possible implementation, files and / or codes are scanned based on the project to be configured to obtain target project components.

[0076] Optionally, when file scanning is performed based on the project to be configured, it can be implemented through package scanning; when code scanning is performed based on the project to be configured, it can be implemented through Java Virtual Machine (JVM) class loading.

[0077] When implementing target project components through file and / or code scanning, it is necessary to import the project to be configured in advance so that the project to be configured can be scanned.

[0078] It's important to note that both file scanning and code scanning can obtain all project components included in the project to be configured, and the scanned project components can be used as the target project components. Furthermore, file scanning and code scanning can also obtain the component version of each project component, allowing you to subsequently set configuration parameters based on the component version of the target project component.

[0079] Optionally, the acquired multiple target project components and the component version of each target project component may be recorded in a table, or other methods may be used, which are not limited in this application.

[0080] In addition, it should be noted that when using the component configuration method provided in this application by integrating the SDK, the SDK encapsulated based on the component configuration method provided in this application has been embedded in the development software, and the project to be configured is directly created and edited in the development software. Therefore, when using the component configuration method provided in this application by integrating the SDK, there is no need to import the project to be configured, but the project to be configured can be directly scanned through the SDK integrated in the development software to automatically obtain the target project components.

[0081] By providing a method for obtaining target project components by scanning files and / or codes, the user can be saved from manually selecting project components, simplifying the operation process and improving component configuration efficiency.

[0082] After the target project component is obtained through the above process, the configuration parameters corresponding to the target project component to be configured can be obtained based on the pre-set component configuration information in step 101 .

[0083] In the pre-set component configuration information, different types of project components correspond to different configuration parameters. Project components of the same type but different versions may also correspond to different configuration parameters. Therefore, in step 101, when obtaining the configuration parameters corresponding to the target project component to be configured based on the pre-set component configuration information, it can be achieved in the following manner:

[0084] Based on the component type and component version of the target project component, configuration parameters matching the component type and component version of the target project component are obtained from pre-set component configuration information.

[0085] Among them, the pre-set component configuration information can be implemented as a component configuration information library. The component configuration information stored in the component configuration information library can be updated along with the iterative update of the component type and component version. That is, whenever the type and / or version of the project component is updated, the updated component configuration information will be automatically added to the component configuration information library to achieve incremental update of the component configuration information, so as to form a complete and perfect component configuration information library, so that the user can be provided with auxiliary functions for component configuration item recommendation, selection, and setting process based on the pre-set component configuration information.

[0086] It should be noted that the component configuration information library can store correspondences between project components of different types and / or versions and configuration parameters, so that the configuration parameters corresponding to the target project components can be obtained based on the correspondences stored in the component configuration information library.

[0087] Optionally, the component configuration information library may use a table to list the configuration parameters corresponding to different project components. It should be noted that different project components may be of different component types or of the same component type but different component versions. In other words, only project components of the same component type and version are considered to be the same project component.

[0088] In one possible implementation, the component configuration information library can be stored in the cloud, so that multiple computing devices can query the component configuration information library in the cloud to obtain the configuration parameters corresponding to each target project component. Optionally, the cloud can provide a query interface so that computing devices can query the component configuration information library in the cloud through the query interface to obtain the configuration parameters corresponding to the target project component.

[0089] Optionally, the component configuration information library can also provide configuration prompts for various component configuration information, such as indicating which component configuration item information is required, which component configuration information is optional, what are the commonly used parameter values ​​of a certain component configuration information, what are the disabled parameter values ​​of a certain component configuration information, and other operation prompts, so as to explain the component configuration information from multiple dimensions and help users set configuration parameters more conveniently, efficiently and accurately.

[0090] After the configuration parameters corresponding to the target project component are acquired through the above process, step 102 may be performed to display a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component.

[0091] In some embodiments, step 102 may be implemented by the following steps when displaying the component configuration interface based on the target project component and the configuration parameters corresponding to the target project component:

[0092] Step 1021: Display the component configuration interface, and display the target project component in the component configuration interface.

[0093] By providing a component configuration interface and displaying the acquired target project component in the component configuration interface, the user can trigger a target project component displayed in the component configuration interface to trigger the display of the configuration parameters corresponding to the target project component, so that the user can set the configuration parameters corresponding to the target project component.

[0094] Still based on the description of the component selection interface shown in Figure 2, if the user selects Lombok as the development tool component, selects Spring Web as the Web component, selects Redis and Postgresql as the database components, selects Kafka as the message queue component, and selects Quartz as the security component in the component selection interface shown in Figure 2, then Lombok, Spring Web, Redis, Kafka, Postgresql, and Quartz will be determined as the target project components to be configured with parameters, so that the component configuration interface shown in Figure 3 can be displayed based on these six target project components. See Figure 3, Figure 3 is an interface diagram of a component configuration interface shown according to an embodiment of the present application. In the left part of the component configuration interface shown in Figure 3, the six target project components of Lombok, Spring Web, Redis, Kafka, Postgresql, and Quartz are displayed. The user can trigger different target project components to call up the display of configuration parameters corresponding to the triggered target project components.

[0095] It should be noted that the display method of the target project components shown in Figure 3 is only an exemplary method. In more possible implementation methods, other methods can be used to display the target project components in the component configuration interface. For example, the component type of the selected target project component can be displayed first, and then after the component type is triggered, the target project components corresponding to the triggered component type can be expanded and displayed. In this way, the target project components can be displayed in a classified manner. Project components of the same type will be displayed under the same component type, so as to help users quickly focus on the parameter configuration of a certain type of target project component and improve the efficiency of parameter configuration.

[0096] Step 1022: In response to the triggering operation on the target project component, the configuration parameters corresponding to the triggered target project component are displayed in the component configuration interface.

[0097] Still taking the component configuration interface shown in Figure 3 as an example, if the user triggers the target project component Redis in the component configuration interface shown in Figure 3, the display of configuration parameters corresponding to the target project component Redis can be called up. As shown in Figure 3, the configuration parameters that need to be configured for the target project component Redis include host, port, password, serial number, and Secure Sockets Layer (SSL) encryption information (including connection timeout, read timeout, maximum number of connections in the connection pool, and maximum number of idle connections in the connection pool).

[0098] Optionally, when displaying the configuration parameters corresponding to the target configuration component, prompt information can also be displayed based on the configuration prompts in the pre-set component configuration information. The prompt information is used to prompt the mandatory configuration parameters in the configuration parameters displayed on the component configuration interface, and / or the prompt information is used to prompt the disabled parameter values ​​of the configuration parameters displayed on the component configuration interface.

[0099] Still taking the component configuration interface shown in Figure 3 as an example, the prompt information can be implemented by marking "*" to indicate the required configuration parameters in the configuration parameters displayed on the component configuration interface, that is, the configuration parameters marked with "*" in Figure 3 are required configuration parameters.

[0100] By displaying prompt information in the component configuration interface so that users can configure parameters according to the prompt information, configuration efficiency is improved, the accuracy of parameter configuration is guaranteed, and the user experience is improved. According to the prompt information displayed in the component configuration interface, users can quickly know which configuration parameters are mandatory and which are optional. Mandatory configuration parameters must have parameter values ​​set for them, while optional configuration parameters can be set or not. This allows users to configure parameter values ​​for different configuration parameters according to their parameter configuration requirements, improving parameter configuration efficiency.

[0101] Optionally, an input control may be provided in the component configuration interface to obtain the parameter value set by the user for the configuration parameter corresponding to the target project component through the input control. For example, an input control may be provided for each configuration parameter displayed in the component configuration interface so that the user can enter the parameter value set by the user through the input control.

[0102] The above is only an exemplary way of providing input controls. In more possible ways, input controls can also be provided in other forms. For example, an input control can be provided in the parameter configuration interface, and the parameter values ​​of the configuration parameters corresponding to each target project component can be obtained through the input control. This application does not limit the specific setting method of the input component.

[0103] In a possible implementation, the parameter value input through the input control in the component configuration interface may be obtained in response to the user's input operation in the input control.

[0104] The above is explained using the example of a user directly setting the parameter values ​​of configuration parameters based on actual technical requirements. In more possible implementations, default parameter values ​​can also be set for the configuration parameters corresponding to each project component, so that users can set parameters based on the default parameter values ​​of each configuration parameter.

[0105] In a possible implementation, in response to a triggering operation on a target project component, configuration parameters corresponding to the triggered target project component may be displayed in a component configuration interface, and default parameter values ​​may be displayed in input controls corresponding to the configuration parameters.

[0106] Furthermore, users can adjust default parameter values ​​that do not meet project requirements based on actual project requirements.

[0107] In a possible implementation, in response to a modification operation on the default parameter value in the input control, the modified parameter value may be obtained as the parameter value of the configuration parameter.

[0108] In addition, the component configuration interface can also provide a code display function so that users can view the code generated based on the configuration parameter values ​​set by themselves in real time. In addition, the user's modification of the configuration parameter values ​​can also be synchronized to the displayed code in real time. Taking the component configuration interface shown in Figure 3 as an example, as shown in Figure 3, the display box on the right side of Figure 3 is a component for providing the code display function, in which the code generated based on the configuration parameter values ​​set in the component configuration interface shown in Figure 3 can be displayed.

[0109] Through the above embodiment, the parameter values ​​of the configuration parameters corresponding to the target project component can be obtained, so that through step 103, a configuration file can be generated based on the target project component and the parameter values ​​set through the component configuration interface.

[0110] In a possible implementation, in step 103, when generating a configuration file based on the target project component and the parameter values ​​set through the component configuration interface, the following steps may be included:

[0111] Step 1031: In response to a confirmation operation in the component configuration interface, a configuration file generation interface is displayed, where the configuration file generation interface includes at least one candidate file format.

[0112] Optionally, a confirmation control can be provided in the component configuration interface. After the user configures the parameter values ​​of each configuration parameter of the target project component through the component configuration interface, the user can trigger the confirmation control in the component configuration interface to trigger the confirmation operation in the component configuration interface.

[0113] Still taking the component configuration interface shown in Figure 3 as an example, in the component configuration interface shown in Figure 3, the "Confirm" button is the confirmation control. The user can trigger the "Confirm" button in the component configuration interface shown in Figure 3 to trigger the confirmation operation in the component configuration interface shown in Figure 3 to submit the configuration parameter values ​​set in the component configuration interface shown in Figure 3.

[0114] After the user triggers the confirmation operation in the component configuration interface, the electronic device can call up the configuration file generation interface and provide at least one optional alternative file format in the configuration file generation interface. The user can select the format of the configuration file to be generated from at least one alternative file format according to actual project requirements.

[0115] See Figure 4, which is a schematic diagram of an interface of a configuration file generation interface according to an embodiment of the present application. In the configuration file generation interface shown in Figure 4, application.properties and yaml displayed in the generation format area are the two alternative file formats selected by the user.

[0116] Step 1032: In response to the file generation operation in the configuration file generation interface, generate a configuration file that matches the selected candidate file format.

[0117] Optionally, a generation control can be provided in the configuration file generation interface, and the user can trigger the generation control to trigger the file generation operation in the configuration file generation interface. The electronic device can respond to the user's file generation operation in the configuration file generation interface and generate a configuration file that matches the selected alternative file format.

[0118] It should be noted that each alternative file format can have its own corresponding file template. When generating a configuration file that matches the selected alternative file format, the target project components, configuration parameters corresponding to the target project components, and configuration parameter values ​​obtained through steps 101 to 102 can be inserted into the preset position in the file template to achieve the generation of a configuration file that matches the selected alternative file format.

[0119] Still taking the configuration file generation interface shown in Figure 4 as an example, the alternative file formats selected by the user include application.properties and yaml. Therefore, through the above step 1032, an application.properties file matching the alternative file format of application.properties and a quartz.properties file matching the alternative file format of yaml can be generated. The two generated files are displayed in the generated file area of ​​the configuration file generation interface shown in Figure 4.

[0120] Through the above embodiment, the file format can be freely switched, and the user can select the format of the configuration file to be generated according to actual technical requirements to obtain a configuration file that meets the actual technical requirements.

[0121] The above step 103 only realizes the generation of the configuration file. Furthermore, the user can also choose a method for obtaining the configuration file according to actual needs.

[0122] Optionally, a file download control and a code writing control can be provided in the configuration file generation interface so that the user can download the generated configuration file through the file download control; or copy the code in the generated configuration file through the code copy control; or write the code in the generated configuration file into the project code of the project to be configured through the code writing control.

[0123] In a possible implementation, if the user triggers a file download control, the electronic device can download the configuration file to a local storage in response to the triggering operation of the file download control.

[0124] Optionally, the file download control can be provided as a first download control and a second download control. In the configuration file generation interface, each generated configuration file can correspond to a first download control, so that the user can download the configuration file by triggering the first download control corresponding to a configuration file. The second download control can also be called a full download control. Only one second download control is required in a configuration file generation interface, and the user can download the generated configuration files of different formats with one click by triggering the second download control.

[0125] Still taking the configuration file generation interface shown in Figure 4 as an example, in the configuration file generation interface shown in Figure 4, download button 401 and download button 402 are the first download controls, and download all button 403 is the second download control. The user can download the application.properties file by triggering download button 401, or download the quartz.properties file by triggering download button 402, or download the application.properties file and the quartz.properties file at one time by triggering download all button 403.

[0126] In another possible implementation, if the user triggers the code copy control, the electronic device can copy the code in the generated configuration file to the clipboard in response to the triggering operation of the code copy control, thereby copying the code included in the configuration file.

[0127] In the configuration file generation interface, each generated configuration file may correspond to a code copy control, so that the user can copy the code included in a configuration file by triggering the code copy control corresponding to the configuration file.

[0128] Still taking the configuration file generation interface shown in Figure 4 as an example, in the configuration file generation interface shown in Figure 4, the copy content button 404 and the copy content button 405 are code copy controls. The user can copy the code in the application.properties file by triggering the copy content button 404, or copy the code in the quartz.properties file by triggering the copy content button 405.

[0129] In another possible implementation, if the user triggers the code writing control, the electronic device can respond to the triggering operation of the code writing control and write the code in the configuration file into the target project file to achieve the purpose of writing the code in the configuration file into the project code of the project to be configured.

[0130] Still taking the configuration file generation interface shown in Figure 4 as an example, in the configuration file generation interface shown in Figure 4, the Write Project button 406 is a code copy control. The user can trigger the Write Project button 406 to write the code in the generated configuration file into the project code of the project to be configured.

[0131] Through the above embodiments, a series of operations can be realized, such as downloading a single configuration file, freely copying configuration files, downloading all configuration files with one click, and automatically writing configuration items into the project. These designs can improve the flexibility of the configuration file generation process, improve the efficiency of component configuration, and greatly improve the user interaction experience.

[0132] For ease of understanding, the implementation process of the component configuration method provided in this application is described in detail below using the interfaces shown in Figures 2 to 4. The user can select the target project component to be configured according to actual needs in the component selection interface shown in Figure 2. After the selection is completed, the user can submit the selection. The computing device can respond to the user's operation in the component selection interface, obtain the target project component selected by the user in the component selection interface, and use the target project component as input for subsequent processes, so that the component configuration interface shown in Figure 3 can be displayed based on the target project component selected in the component selection interface, and the parameter values ​​of the configuration parameters corresponding to each target project component can be configured in the component configuration interface, so that the user can set the parameter value of each configuration parameter in the component configuration interface. After the parameter value is set, the user can trigger a confirmation operation in the component configuration interface. The computing device can respond to the user's confirmation operation in the component configuration interface, obtain the parameter value set by the user in the component configuration interface, and pass the obtained parameter value as the data basis for code generation to the subsequent process. The computing device can display the configuration file generation interface shown in Figure 4, so that the user can select the configuration file type required by the user through the configuration file generation interface. The computing device can generate the configuration file based on the configuration file type selected by the user and the obtained parameter value.

[0133] The schematic process of the component configuration method provided in the present application can be seen in Figure 5, which is a flowchart of a component configuration method according to an embodiment of the present application. As shown in Figure 5, after the target project component is obtained through component identification / selection, the parameter values ​​of the configuration parameters of the target project component can be set based on the component configuration information library to realize the generation of the configuration file.

[0134] In addition, it should be noted that the component configuration method provided in this application will involve interactions between the front-end, back-end and cloud. For ease of understanding, the data interaction process of the component configuration method provided in this application is described below using an exemplary system architecture.

[0135] Refer to Figure 6, which is a system architecture diagram of a component configuration system according to an embodiment of the present application. As shown in Figure 6, the computing device can provide functions such as component selection, parameter configuration, and configuration generation (that is, configuration file generation) through the front-end presentation layer, wherein the configuration generation function may include configuration downloading and configuration writing. The user can operate through the functions provided by the front-end presentation layer to realize data interaction between the front and back ends. For example, component identification can be performed through the back-end service layer to realize component selection, parameter configuration can be realized by the back-end service layer through the information library interface (that is, the query interface), and configuration generation can be realized through the configuration service provided by the back-end service layer. In addition, configuration download or configuration writing can also be realized through the file service provided by the back-end service layer.

[0136] Among them, the back-end service layer implements parameter configuration through the information library interface (also known as the query interface), that is, the back-end service layer queries the required configuration parameters from the component configuration information library in the cloud through the information library interface. Specifically, the cloud can be divided into a Web front-end, a business service layer, and a storage unit. The storage unit is the location actually used to store the component configuration information library. In order to ensure that the computing device can query the component configuration information library through the information library interface belonging to the business service layer, the information library management service and the information library engine can be configured in the business service layer. The information library management service is used to provide parameter query services to the computing device when it has a query requirement. The computing device can call the information library management service through the information library management front-end of the Web front-end; the information library engine is used to execute the query process to obtain the required query parameters. The computing device can call the information library engine through the various box-free services provided by the Web front-end. The various components of the above-mentioned component configuration system can work together to implement the component configuration method provided in this application.

[0137] Through the component configuration method provided by this application, it is possible to quickly find the configuration items (that is, configuration parameters) that need to be set for each project component, saving developers the time cost of finding configuration items; in addition, by pre-setting the configuration parameters of project components of different component types and / or component versions, it can help users accurately locate the required configuration of each component. In addition, the component configuration method provided by this application can support many components under the commonly used framework such as Spring Boot. Developers can use it through SDK integration or online use to implement component parameter configuration, which is very convenient. The following compares the component configuration method provided by this application with several commonly used component configuration methods in related technologies (including the method of querying official documents, the method of decompiling source code with the help of IDEA, the method of using spring initializr, the method of using JBolt, and the method of using network search) to help understand the component configuration method provided by this application. The specific comparison results can be seen in Table 1 below.

[0138] Table 1

[0139] Corresponding to the embodiments of the aforementioned methods, the present application also provides embodiments of corresponding component configuration devices and electronic devices to which they are applied.

[0140] Referring to FIG. 7 , FIG. 7 is a block diagram illustrating a component configuration device according to an embodiment of the present application. As shown in FIG. 7 , the device includes:

[0141] An acquisition module 701 is used to acquire configuration parameters corresponding to the target project component to be configured based on pre-set component configuration information, where the component configuration information indicates the configuration parameters corresponding to each project component.

[0142] A display module 702 is configured to display a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, wherein the component configuration interface is used to set parameter values ​​of the configuration parameters corresponding to the target project component;

[0143] The generation module 703 is used to generate a configuration file based on the target project component and the parameter values ​​set through the component configuration interface.

[0144] In some embodiments of the present application, in the pre-set component configuration information, different types and versions of project components correspond to different configuration parameters;

[0145] The acquisition module 701, when used to acquire configuration parameters corresponding to the target project component to be configured based on pre-set component configuration information, is used to:

[0146] Based on the component type and component version of the target project component, configuration parameters matching the component type and component version of the target project component are obtained from pre-set component configuration information.

[0147] In some embodiments of the present application, the acquisition module 701 is further used to acquire a target project component to be configured.

[0148] In some embodiments of the present application, the acquisition module 701, when used to acquire the target project component to be configured, is used for any of the following:

[0149] Displaying a component selection interface and displaying at least one candidate project component in the component selection interface, and obtaining the selected candidate project component as a target project component based on a component selection operation in the component selection interface;

[0150] Scan files and / or codes based on the project to be configured to obtain target project components.

[0151] In some embodiments of the present application, the display module 702, when used to display the component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, is used to:

[0152] Display the component configuration interface and display the target project components in the component configuration interface;

[0153] In response to the triggering operation on the target project component, configuration parameters corresponding to the triggered target project component are displayed in the component configuration interface.

[0154] In some embodiments of the present application, an input control is provided in the component configuration interface, and the input control is used to obtain the parameter value of the configuration parameter corresponding to the target project component;

[0155] The acquisition module 701 is further configured to acquire parameter values ​​input through input controls in the component configuration interface.

[0156] In some embodiments of the present application, for any project component, the configuration parameters corresponding to the project component are pre-set with default parameter values;

[0157] The display module 702 is further configured to display configuration parameters corresponding to the triggered target project component in the component configuration interface in response to a triggering operation on the target project component, and to display default parameter values ​​for the displayed configuration parameters.

[0158] In some embodiments of the present application, the acquisition module 701 is further configured to, in response to a modification operation on a default parameter value in an input control, acquire the modified parameter value as the parameter value of the configuration parameter.

[0159] In some embodiments of the present application, the component configuration interface further displays prompt information, where the prompt information is used to prompt mandatory configuration parameters among the configuration parameters, and / or the prompt information is used to prompt disabled parameter values ​​of the configuration parameters.

[0160] In some embodiments of the present application, the generation module 703, when used to generate a configuration file based on the target project component and the parameter values ​​set through the component configuration interface, is used to:

[0161] In response to a confirmation operation in the component configuration interface, displaying a configuration file generation interface, the configuration file generation interface including at least one candidate file format;

[0162] In response to a file generation operation in the configuration file generation interface, a configuration file matching the selected candidate file format is generated.

[0163] In some embodiments of the present application, the configuration file generation interface further includes a file download control, a code copy control, and a code write control;

[0164] The device also includes:

[0165] A download module, configured to download the configuration file to a local storage in response to a triggering operation on the file download control;

[0166] A copy module, configured to copy the code in the configuration file to a clipboard in response to a triggering operation on the code copy control;

[0167] The writing module is used to write the code in the configuration file into the target project file in response to a triggering operation on the code writing control.

[0168] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this specification. Those of ordinary skill in the art can understand and implement it without paying any creative work.

[0169] The present application also provides an electronic device, see Figure 8, which is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. As shown in Figure 8, the electronic device includes a processor 810, a memory 820, and a network interface 830. The memory 820 is used to store computer instructions that can be executed on the processor 810. The processor 810 is used to implement the component configuration method provided in any embodiment of the present application when executing the computer instructions. The network interface 830 is used to implement input and output functions. In more possible implementations, the electronic device may also include other hardware, which is not limited by the present application.

[0170] The present application also provides a computer-readable storage medium, which can be in various forms. For example, in different examples, the computer-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as a hard disk drive), solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or similar storage medium, or a combination thereof. In particular, the computer-readable medium can also be paper or other suitable medium capable of printing programs. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the component configuration method provided in any embodiment of the present application is implemented.

[0171] The present application also provides a computer program product, including a computer program, which implements the component configuration method provided in any embodiment of the present application when the computer program is executed by a processor.

[0172] Those skilled in the art will appreciate that one or more embodiments of this specification may be provided as methods, apparatuses, electronic devices, computer-readable storage media, or computer program products. Thus, one or more embodiments of this specification may take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware. Furthermore, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0173] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from the other embodiments. In particular, the embodiments corresponding to the electronic device are generally similar to the method embodiments, so the description is relatively simple. For relevant portions, refer to the description of the method embodiments.

[0174] The foregoing description of specific embodiments of this specification is provided. Other embodiments are within the scope of this application. In some cases, the actions or steps described herein may be performed in an order different from that shown in the embodiments and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0175] Embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more thereof. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier to be executed by a component configuration device or to control the operation of the component configuration device. Alternatively or in addition, the program instructions may be encoded on an artificially generated propagated signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by the component configuration device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more thereof.

[0176] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform the corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can be implemented as, special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).

[0177] Computers suitable for executing computer programs include, for example, general-purpose and / or special-purpose microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to such mass storage devices to receive data from them or to transmit data to them, or both. However, a computer does not necessarily have such devices. In addition, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.

[0178] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and storage devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0179] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of specific embodiments of specific inventions. Certain features described in multiple embodiments within this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claimed as such, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of the sub-combination.

[0180] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.

[0181] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of this application. In some cases, the actions described in this application can be performed in a different order and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential sequence shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0182] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the present invention and practicing the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this specification and include common knowledge or customary techniques in the art that are not claimed herein. That is, this specification is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof.

[0183] The above description is only an optional embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A component configuration method, characterized in that: The method comprises: Based on the pre-set component configuration information, the configuration parameters corresponding to the target project component to be configured are obtained, wherein the component configuration information is used to indicate the configuration parameters corresponding to each project component; Displaying a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, wherein the component configuration interface is used to set parameter values ​​of the configuration parameters corresponding to the target project component; A configuration file is generated based on the target project component and the parameter values ​​set through the component configuration interface.

2. The method according to claim 1, characterized in that In the pre-set component configuration information, different types of project components correspond to different configuration parameters, and / or different versions of project components correspond to different configuration parameters; The step of obtaining configuration parameters corresponding to the target project component to be configured based on the pre-set component configuration information includes: Based on the component type and component version of the target project component, configuration parameters matching the component type and component version of the target project component are acquired from pre-set component configuration information.

3. The method according to claim 1, characterized in that Before obtaining configuration parameters corresponding to the target project component to be configured based on the preset component configuration information, the method further includes: The target project component to be configured is obtained.

4. The method according to claim 3, characterized in that The obtaining of the target project component to be configured includes any of the following: Displaying a component selection interface and displaying at least one candidate project component in the component selection interface, and acquiring a selected candidate project component as the target project component based on a component selection operation in the component selection interface; File and / or code scanning is performed based on the project to be configured to obtain the target project component.

5. The method according to claim 1, characterized in that The displaying of a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component includes: Displaying a component configuration interface, and displaying the target project component in the component configuration interface; In response to the triggering operation on the target project component, the configuration parameters corresponding to the triggered target project component are displayed in the component configuration interface.

6. The method according to claim 5, characterized in that An input control is provided in the component configuration interface, and the input control is used to obtain the parameter value of the configuration parameter corresponding to the target project component; Before generating the configuration file based on the target project component and the parameter values ​​set through the component configuration interface, the method further includes: Obtain parameter values ​​input through input controls in the component configuration interface.

7. The method according to claim 6, characterized in that For any project component, the configuration parameters corresponding to the project component are pre-set with default parameter values; The method further comprises: In response to the triggering operation on the target project component, the configuration parameters corresponding to the triggered target project component are displayed in the component configuration interface, and the default parameter values ​​are displayed for the displayed configuration parameters.

8. The method according to claim 7, characterized in that After the method further comprises: displaying configuration parameters corresponding to the triggered target project component in the component configuration interface in response to the triggering operation on the target project component, and displaying the default parameter value for the displayed configuration parameter, the method further comprises: In response to a modification operation on the default parameter value in the input control, the modified parameter value is acquired as the parameter value of the configuration parameter.

9. The method according to claim 1, characterized in that: The component configuration interface further displays prompt information, wherein the prompt information is used to prompt mandatory configuration parameters among the configuration parameters, and / or the prompt information is used to prompt disabled parameter values ​​of the configuration parameters.

10. The method according to claim 1, characterized in that The generating a configuration file based on the target project component and the parameter value set through the component configuration interface includes: In response to a confirmation operation in the component configuration interface, displaying a configuration file generation interface, the configuration file generation interface including at least one candidate file format; In response to a file generation operation in the configuration file generation interface, a configuration file matching the selected candidate file format is generated.

11. The method according to claim 10, characterized in that The configuration file generation interface also includes a file download control, a code copy control, and a code write control; After generating a configuration file matching the selected candidate file format in response to the file generation operation in the configuration file generation interface, the method further includes any of the following: In response to a triggering operation on the file download control, downloading the configuration file to a local storage; In response to a triggering operation on the code copy control, copying the code in the configuration file to a clipboard; In response to a triggering operation on the code writing control, the code in the configuration file is written into a target project file.

12. A component configuration device, characterized in that: The device comprises: An acquisition module, used to acquire configuration parameters corresponding to the target project component to be configured based on pre-set component configuration information, wherein the component configuration information is used to indicate configuration parameters corresponding to each project component; A display module, configured to display a component configuration interface based on the target project component and the configuration parameters corresponding to the target project component, wherein the component configuration interface is used to set parameter values ​​of the configuration parameters corresponding to the target project component; The generation module is used to generate a configuration file based on the target project component and the parameter values ​​set through the component configuration interface.

13. An electronic device, characterized in that: The electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the operations performed by the component configuration method according to any one of claims 1 to 11 when executing the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is executed by a processor, the operations performed by the component configuration method according to any one of claims 1 to 11 are implemented.