CN104424338A - Automatic generation device and automatic generation method for web system - Google Patents

Automatic generation device and automatic generation method for web system Download PDF

Info

Publication number
CN104424338A
CN104424338A CN201310412990.5A CN201310412990A CN104424338A CN 104424338 A CN104424338 A CN 104424338A CN 201310412990 A CN201310412990 A CN 201310412990A CN 104424338 A CN104424338 A CN 104424338A
Authority
CN
China
Prior art keywords
database
web system
javabean
generate
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310412990.5A
Other languages
Chinese (zh)
Other versions
CN104424338B (en
Inventor
吴春志
邓克毅
黄科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Pku Founder Information Industry Group Co ltd
Peking University Founder Group Co Ltd
Founder Apabi Technology Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Apabi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Apabi Technology Co Ltd filed Critical Founder Information Industry Holdings Co Ltd
Priority to CN201310412990.5A priority Critical patent/CN104424338B/en
Publication of CN104424338A publication Critical patent/CN104424338A/en
Application granted granted Critical
Publication of CN104424338B publication Critical patent/CN104424338B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an automatic generation device for a web system. The automatic generation device comprises a view layer generation unit, a model layer generation unit and a control layer generation unit, wherein the view layer generation unit is used for generating a form interface of a view layer of the web system; the model layer generation unit comprises a database establishment subunit and a class creating subunit, wherein the database establishment subunit is used for establishing a database, a database table corresponding to the form interface is stored in the database, and the class creating subunit is used for creating a business processing class for operating the database so as to complete the generation of a model layer of the web system; the control layer generation unit comprises a functional configuration subunit and a strategy establishment subunit, wherein the functional configuration subunit is used for carrying out functional configuration according to preset configuration files, and the strategy establishment subunit is used for establishing a control strategy so as to complete the generation of a control layer of the web system. The invention further provides a corresponding automatic generation method for the web system. Through the automatic generation device and the automatic generation method, an automation process during the development of the web system can be improved, manual intervention is reduced, and the development process is simplified.

Description

The automatically generating device of web system and automatic generation method
Technical field
The present invention relates to technical field of data processing, in particular to a kind of automatically generating device of web system and a kind of automatic generation method of web system.
Background technology
In the exploitation of web system, devisers in the face of how framework web system with reach exploitation more convenient, more succinct in, MVC(model (model)-view (view)-controller (controller)) architecture mode becomes mainstream technology gradually.MVC is a kind of software component pattern, show by a kind of service logic and data the method be separated and organize code, the supposed premise of this method is if service logic is aggregated an inside components, and interface and user do not need again to write service logic around mutual can being modified of data with personalized customization.MVC is applied in the structure of the graphic user interface of a logic, realizes mapping traditional input, process and output function.
MVC is by M(model layer) with V(view layer) code be separated, thus make same program can use the different forms of expression.Such as a collection of statistics can represent with histogram, pie chart respectively.C(key-course) object that exists is then guarantee M(model layer) and V(view layer) synchronous, once M(model layer) change, V(view layer) should synchronized update.It is enforceable makes the input of application program, process and output separately.Based on mentioned above principle, weblication is divided into three core components: model, view, controller, and they process oneself task separately.
Nowadays industry also has a lot of maturation and the MVC architectural schemes be widely used, such as Struts, Spring, Hibernate etc.They are when use MVC design pattern carries out web system framework, completely can by the C(key-course of configuration file by decoupling zero) and M(model layer) tight association gets up and separate, and by strategy pattern and the technology towards tangent plane programming, can the M(of robotization generating portion intelligently model layer) and C(key-course) code.
But, the solution of the various MVC proposed in correlation technique, still the code robotization resting on part level generates, or certain details robotization, the robotization that a whole set of technical scheme cannot be provided to carry out carrying out the whole level of MVC the code had nothing to do with service logic generates.
Therefore, how to provide a kind of development technique of new web system, make the exploitation robotization more of web system, allow program developer more pay attention to concrete service logic, increase work efficiency.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of Auto of new web system, can improve the automation process in web system performance history, reduces manual intervention, simplifies performance history.
In view of this, the present invention proposes a kind of automatically generating device of web system, comprising: view layer generation unit, for generating the form interface of the view layer of described web system; Model layer generation unit, comprise: Database subelement, for building database, in described database, store the database table corresponding with described form interface, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Class creates subelement, creates the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Key-course generation unit, comprising: functional configuration subelement, for carrying out functional configuration according to the configuration file preset; Strategy sets up subelement, for setting up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
According to another aspect of the invention, also proposed a kind of automatic generation method of web system, comprising: the form interface generating the view layer of described web system; Building database, stores the database table corresponding with described form interface in described database, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Create the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Configuration file according to presetting carries out functional configuration, and sets up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
By above technical scheme, the automation process in web system performance history can be improved, reduce manual intervention, simplify performance history.
Accompanying drawing explanation
Fig. 1 shows the schematic block diagram of the automatically generating device of web system according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of the automatic generation method of web system according to an embodiment of the invention;
Fig. 3 shows the principle schematic that robotization according to an embodiment of the invention generates web system.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention, but the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the schematic block diagram of the automatically generating device of web system according to an embodiment of the invention.
As shown in Figure 1, the automatically generating device of web system according to an embodiment of the invention, comprising: view layer generation unit, for generating the form interface of the view layer of described web system; Model layer generation unit, comprise: Database subelement, for building database, in described database, store the database table corresponding with described form interface, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Class creates subelement, creates the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Key-course generation unit, comprising: functional configuration subelement, for carrying out functional configuration according to the configuration file preset; Strategy sets up subelement, for setting up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
In technique scheme, preferably, described view layer generation unit comprises: chooser unit, for the selection instruction according to the user received, selects form controls and view type; List generates subelement, for according to the key entry information obtained, for each form controls adds corresponding attribute information and method information, to generate the form interface of described view layer.
In this technical scheme, for without the need to performing writing specific code, only needing to select view type and the visual control model set up in advance, can automatically generate corresponding code by backstage, contribute to increasing work efficiency.By keying in attribute information and method information, then for the system architecture by the control model-composing preset, for each concrete control arranges corresponding practical function and logical relation, but these operations are all without the need to manually writing code by user, only need to pay close attention to concrete service logic, improve automaticity, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, described Database subelement is used for: the JavaBean assembly creating the attribute information of each form controls comprised in described form interface; According to the attributive character of required database, generate database table, all properties information one_to_one corresponding in the field in described database table and described JavaBean assembly; Described database table is stored to database.
In this technical scheme, utilize dynamic proxy technology, by JavaBean, the attribute of the form controls of view layer is obtained, and set up corresponding database table, thus be automatically associated between view layer and model layer, and at view layer, be automatically associated between model layer with database, manually arrange without the need to user, contribute to the automaticity of elevator system, improve the work efficiency of user.
In above-mentioned arbitrary technical scheme, preferably, the foundation class for operating described database inherited by described JavaBean assembly; And described business processing class comprises Agent components and described JavaBean assembly, wherein, described Agent components, by calling described JavaBean assembly, realizes the operation to described database.
In this technical scheme, by inheriting foundation class by JavaBean assembly, realize the concrete operations to database, and realized responding concrete request during system cloud gray model by Agent components, thus the clearly division realized multiple function, contribute to concrete debugging and control.
In above-mentioned arbitrary technical scheme, preferably, described model layer generation unit also comprises: template generation subelement, for generating and storing the SQL templates statement be associated with described business processing class; Wherein, the information parsed from the operation requests received is added into described SQL templates statement by described business processing class, to generate SQL perform statement, and by described SQL perform statement, realizes the operation to described database.
In this technical scheme, by generating SQL templates statement, then when responding the request of user, without the need to all again writing SQL query statement at every turn, and the relevant position directly mark (ID etc. as concrete database table) of the data of desired operation is added in SQL templates statement, directly can realize the operation to database, contribute to shortening the response time, improve operational efficiency.
In above-mentioned arbitrary technical scheme, preferably, described key-course generation unit also comprises: file generated subelement, and for the operational motion by detecting user, determination operation object and mode of operation, to generate described default configuration file.
In this technical scheme, in the generative process of key-course, in initialization procedure and concrete functional configuration process, need to use the configuration file generated in advance.The generative process of configuration file is without the need to user's manual programming, only need by user's execution as the operation such as establishment, the selection of object, the selection of mode of operation in path, system just can generate corresponding configuration file automatically, make the generative process robotization more of configuration file, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, described strategy set up subelement for: according to user select framework type, read the predetermined control strategy that described framework type is corresponding; Or according to the user's configuration-direct received, set up the control strategy of configuration in real time.
In this technical scheme, user can select the framework type pre-set, then can directly read corresponding to control strategy corresponding to selected framework, to raise the efficiency; User also according to actual conditions, can configure new control strategy, to be applicable to different actual conditions.
Fig. 2 shows the schematic flow sheet of the automatic generation method of web system according to an embodiment of the invention.
As shown in Figure 2, the automatic generation method of web system according to an embodiment of the invention, comprising: the form interface generating the view layer of described web system; Building database, stores the database table corresponding with described form interface in described database, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Create the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Configuration file according to presetting carries out functional configuration, and sets up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
In technique scheme, preferably, the process generating described form interface comprises: according to the selection instruction of the user received, select form controls and view type, and according to the key entry information obtained, for each form controls adds corresponding attribute information and method information, to generate the form interface of described view layer.
In this technical scheme, for without the need to performing writing specific code, only needing to select view type and the visual control model set up in advance, can automatically generate corresponding code by backstage, contribute to increasing work efficiency.By keying in attribute information and method information, then for the system architecture by the control model-composing preset, for each concrete control arranges corresponding practical function and logical relation, but these operations are all without the need to manually writing code by user, only need to pay close attention to concrete service logic, improve automaticity, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, the process setting up described database comprises: the JavaBean assembly creating the attribute information of each form controls comprised in described form interface; According to the attributive character of required database, generate database table, all properties information one_to_one corresponding in the field in described database table and described JavaBean assembly; Described database table is stored to database.
In this technical scheme, utilize dynamic proxy technology, by JavaBean, the attribute of the form controls of view layer is obtained, and set up corresponding database table, thus be automatically associated between view layer and model layer, and at view layer, be automatically associated between model layer with database, manually arrange without the need to user, contribute to the automaticity of elevator system, improve the work efficiency of user.
In above-mentioned arbitrary technical scheme, preferably, also comprise: the foundation class for operating described database inherited by described JavaBean assembly; And described business processing class comprises Agent components and described JavaBean assembly, wherein, described Agent components, by calling described JavaBean assembly, realizes the operation to described database.
In this technical scheme, by inheriting foundation class by JavaBean assembly, realize the concrete operations to database, and realized responding concrete request during system cloud gray model by Agent components, thus the clearly division realized multiple function, contribute to concrete debugging and control.
In above-mentioned arbitrary technical scheme, preferably, also comprise: generate and store the SQL templates statement be associated with described business processing class; The information parsed from the operation requests received is added into described SQL templates statement by described business processing class, to generate SQL perform statement, and by described SQL perform statement, realizes the operation to described database.
In this technical scheme, by generating SQL templates statement, then when responding the request of user, without the need to all again writing SQL query statement at every turn, and the relevant position directly mark (ID etc. as concrete database table) of the data of desired operation is added in SQL templates statement, directly can realize the operation to database, contribute to shortening the response time, improve operational efficiency.
In above-mentioned arbitrary technical scheme, preferably, also comprise: by detecting the operational motion of user, determination operation object and mode of operation, to generate described default configuration file.
In this technical scheme, in the generative process of key-course, in initialization procedure and concrete functional configuration process, need to use the configuration file generated in advance.The generative process of configuration file is without the need to user's manual programming, only need by user's execution as the operation such as establishment, the selection of object, the selection of mode of operation in path, system just can generate corresponding configuration file automatically, make the generative process robotization more of configuration file, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, the process setting up control strategy comprises: the framework type selected according to user, reads the predetermined control strategy that described framework type is corresponding; Or according to the user's configuration-direct received, set up the control strategy of configuration in real time.
In this technical scheme, user can select the framework type pre-set, then can directly read corresponding to control strategy corresponding to selected framework, to raise the efficiency; User also according to actual conditions, can configure new control strategy, to be applicable to different actual conditions.
Fig. 3 shows the principle schematic that robotization according to an embodiment of the invention generates web system.
Below in conjunction with Fig. 3, the principle of work robotization based on embodiments of the invention being generated to web system is described in detail.
Assuming that in web system development platform of the present invention, comprise basis plateform system 302, also comprise for other concrete functions as view layer platform 302A, model layer platform 302B, key-course platform 302C etc., to realize the exploitation of concrete web system.
When needs perform web system exploitation, the setting being carried out in advance by plateform system 302 couples of users and complete or configuration is needed to read, to realize initialization and the functional configuration of system.
One, the automatic generation of view layer
In the present embodiment, the robotization generation of view layer is realized primarily of view layer platform 302A.Particularly, interactive process can be realized by the mode of browser, and user only needs to pull the mode with keyboard operation by mouse, can realize the generation of the page.
1, view type
User according to demand, the view type needed for selection, such as HTML, jsp, freemarker etc.
2, design drawing
Particularly, need to provide visual view control by view layer platform 302A, then user according to the demand of self, can use mouse to select and drags view control, can form corresponding design drawing.Such as, view control wherein can adopt W3C(World Wide WebConsortium, World Wide Web Consortium) control inside standard, only need the related specifications understanding W3C, do not need to spend again any time and energy goes to learn new control and API.
3, list
Design drawing on the view type that view layer platform 302A selects according to user and design platform, can generate corresponding list automatically.
Wherein, the association between the view control on list, with mutual, can adopt JavaScript and DOM technology to realize.Such as, some basic DOM can be provided in view layer platform 302A to operate (method), select for programmer; Meanwhile, programmer also can self-defined DOM method, and is associated to concrete view control.List and backstage then can adopt as ajax mode alternately, or generate the mode of interim form label submission.
4, the embodiment of " login interface "
Assuming that user needs the web system of design one " login interface ", then the generative process for view layer comprises:
1) select on interface at the control of view design platform 302A, pull a user name input frame (input-text label) and a Password Input frame (input-password label), and pull two buttons: " login " (input-button label), " replacement " (input-button label).
2) form types (as JSP, HTML etc.) needing to generate is selected: jsp; Input list ID(uniquely indicates): login.jsp.
3) attribute of each view control is edited.Such as double-click user name input frame edit properties, input ID:userName; Double-click Password Input frame edit properties, input ID:userPassword; Double-click login button edit properties, URL:login.do is submitted in input ID:loginButton, input to; Input needs the form ID:loginForm submitted to; Double-click reset button edit properties, input ID:resetButton; Input needs the form ID:loginForm reset.
4) view layer platform 302A can be that each view control generates javaScript method automatically.Such as submit to loginButton: producing interim form, an ID is: loginForm, content contain all on the page can input object (Password Input frame, Password Input frame); Action is: login.do; Last form.submit ().
Certainly, log in if user needs oneself to write javaScript method, the event attribute of login button can be edited, and change self-defining method into.
5) automation equipment generates corresponding form interface on backstage according to a series of design procedure above.
Two, the automatic generation of model layer
1、JavaBean
Model layer platform 302B uses dynamic proxy technology, using the class name (for each list generate a corresponding JavaBean) of form ID as JavaBean, html all on list can correspond to the attribute of JavaBean by input label, the JavaBean corresponding to automatically generating.
2, database
Obtain the information comprised in the JavaBean generated, the attribute information of the view control namely in view layer in corresponding list, and according to the type of database of the information of JavaBean and selected use, version and framework, automatically produce corresponding database script.
By the database script of above-mentioned generation, the database table of automatic generation corresponding with JavaBean (ID of ID and the JavaBean of such as database table, the ID of corresponding list are identical), field inside database table and the attribute one_to_one corresponding inside Javabean, thus complete the establishment to database.
Meanwhile, each JavaBean inherits a foundation class, and JavaBean mainly associates with database manipulation by this foundation class, can realize the operation to database, as increased, deleting, change, look into.
3、Action
In fact, by the request of the direct response limiting layer of JavaBean, can perform the operation to database, but in order to distinguish difference in functionality, be convenient to debugging and the division of labor of system, native system also by creating Action, thus shares the request to key-course.
Action is business processing class, and be the class of operation that of generating according to the attribute of JavaBean and method has basic database operations (additions and deletions change look into), this Action can carry out operating database by calling JavaBean.
4, SQL statement template
While generation Action, model layer platform 302B also can produce a SQL configuration file corresponding with this Action, with auxiliary support Action to the operation of database.Particularly, this SQL configuration file comprises the SQL statement template to database manipulation, then without the need to regenerating SQL statement at every turn, as long as and according to the request of key-course, the Data Identification (ID etc. as database table) of association is added into corresponding position in SQL statement template, contributes to increasing work efficiency.
Certainly, programmer can modify to Action according to actual conditions, also can modify to SQL configuration file; And the amendment of operating function for database, also can automatic synchronization in Action and SQL configuration file.
In technique scheme, by the parsing to view layer forms pages, using the various input controls of list as attribute, and generate corresponding function (method), thus obtain JavaBean.The view page on foreground can well associate with the concrete business logic processing class of background model layer by above-mentioned dynamic proxy technology, programmer is allowed only to need to be concerned about the process of concrete service logic, need not go to consider the associating of foreground and backstage, communication again, thus lifting work efficiency.
5, the embodiment of " login interface "
1) according to the list generated, create a class on backstage, its title is according to form ID (being associated): Login_jsp.java, and each attribute is consistent with the input control of list: username, usePassword; Corresponding method: getUserName (), setUserName (), getUserPassword (), setUserPassword ().
2) SQL script is generated.Specific code can be:
3) formation base class.Specific code can be:
4) Action class is generated.Specific code can be:
Three, the automatic generation of key-course
1, user's configuration
After the configuration of key-course platform 302C initialization system, enter key-course administration interface 304, and according to the configuration of user, automatically generate key-course.
User needs to generate corresponding configuration file in advance, for the functional configuration in the initial configuration of key-course and control procedure.User, without the need to writing the function code of configuration file particularly, only needs, to needing the object, mode etc. operated select or create, can automatically generate corresponding code by backstage, such as the appointment in path, only needs directly to create this path; For the appointment of operand, only need directly to choose this object.
2, processing logic
Except above-mentioned configuration, also need to arrange concrete processing logic.
1) key-course platform 302C provides the multiple framework pre-set, and user can directly select it, then processing logic corresponding for selected framework can directly be applied in current web system by key-course platform 302C.Particularly, by the configuration file of the types such as above-mentioned processing logic write web, xml is realized.
2) programmer also can not select predefined framework, but redefines processing logic according to actual conditions.Particularly, such as key-course platform 302C can generate the request URL that blocker class carrys out certain specific format ending that hook procedure person configures automatically.
More specifically, as: programmer is configured with system URL suffix at key-course administration interface 304 and is called .do, so automatic formation controller of plateform system 302 meeting, to tackle the request that all .do are suffix name, and according to the path configured during Design view layer and ID, send to blocker as request URL.Blocker is resolved the URL that obtains and is distributed to corresponding Action(business processing class).
3, the embodiment of " login interface "
1) login interface (list) is set to be submitted to login.do on view layer design platform 302A.
2) on controller management interface 304, the request that all .do tackled by blocker is configured.
3) correlation parameter of configuration is write in the web.xml file of the system that robotization generates.
4) when clicking login button, parameter can be sent to login.do, this request (request) intercepted by blocker inside web.xml, is just sent in loginAction by this request analysis, then carries out processing the processing procedure such as database manipulation particularly by loginAction.
More than be described with reference to the accompanying drawings technical scheme of the present invention, the invention provides a kind of automatically generating device of web system and a kind of automatic generation method of web system, the automation process in web system performance history can be improved, reduce manual intervention, simplify performance history.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. an automatically generating device for web system, is characterized in that, comprising:
View layer generation unit, for generating the form interface of the view layer of described web system; Model layer generation unit, comprising:
Database subelement, for building database, stores the database table corresponding with described form interface in described database, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface;
Class creates subelement, creates the business processing class being used for operating described database, to complete the generation of the model layer of described web system;
Key-course generation unit, comprising:
Functional configuration subelement, for carrying out functional configuration according to the configuration file preset;
Strategy sets up subelement, for setting up control strategy, to complete the generation of the key-course of described web system.
2. the automatically generating device of web system according to claim 1, is characterized in that, described view layer generation unit comprises:
Chooser unit, for the selection instruction according to the user received, selects form controls and view type;
List generates subelement, for according to the key entry information obtained, for each form controls adds corresponding attribute information and method information, to generate the form interface of described view layer.
3. the automatically generating device of web system according to claim 1, is characterized in that, described Database subelement is used for:
Create the JavaBean assembly of the attribute information of each form controls comprised in described form interface;
According to the attributive character of required database, generate database table, all properties information one_to_one corresponding in the field in described database table and described JavaBean assembly;
Described database table is stored to database.
4. the automatically generating device of web system according to claim 3, is characterized in that,
The foundation class for operating described database inherited by described JavaBean assembly; And
Described business processing class comprises Agent components and described JavaBean assembly, and wherein, described Agent components, by calling described JavaBean assembly, realizes the operation to described database.
5. the automatically generating device of web system according to claim 1, is characterized in that, described model layer generation unit also comprises:
Template generation subelement, for generating and storing the SQL templates statement be associated with described business processing class;
Wherein, the information parsed from the operation requests received is added into described SQL templates statement by described business processing class, to generate SQL perform statement, and by described SQL perform statement, realizes the operation to described database.
6. the automatically generating device of web system according to claim 1, is characterized in that, described key-course generation unit also comprises:
File generated subelement, for the operational motion by detecting user, determination operation object and mode of operation, to generate described default configuration file.
7. the automatically generating device of web system according to claim 1, is characterized in that, described strategy set up subelement for:
According to the framework type that user selects, read the predetermined control strategy that described framework type is corresponding;
Or according to the user's configuration-direct received, set up the control strategy of configuration in real time.
8. an automatic generation method for web system, is characterized in that, comprising:
Generate the form interface of the view layer of described web system;
Building database, stores the database table corresponding with described form interface in described database, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface;
Create the business processing class being used for operating described database, to complete the generation of the model layer of described web system;
Configuration file according to presetting carries out functional configuration, and sets up control strategy, to complete the generation of the key-course of described web system.
9. the automatic generation method of web system according to claim 8, is characterized in that, the process generating described form interface comprises:
According to the selection instruction of the user received, select form controls and view type, and according to the key entry information obtained, for each form controls adds corresponding attribute information and method information, to generate the form interface of described view layer.
10. the automatic generation method of web system according to claim 8, is characterized in that, the process setting up described database comprises:
Create the JavaBean assembly of the attribute information of each form controls comprised in described form interface;
According to the attributive character of required database, generate database table, all properties information one_to_one corresponding in the field in described database table and described JavaBean assembly;
Described database table is stored to database.
The automatic generation method of 11. web system according to claim 10, is characterized in that, also comprise:
The foundation class for operating described database inherited by described JavaBean assembly; And
Described business processing class comprises Agent components and described JavaBean assembly, and wherein, described Agent components, by calling described JavaBean assembly, realizes the operation to described database.
The automatic generation method of 12. web system according to claim 8, is characterized in that, also comprise:
Generate and store the SQL templates statement be associated with described business processing class;
The information parsed from the operation requests received is added into described SQL templates statement by described business processing class, to generate SQL perform statement, and by described SQL perform statement, realizes the operation to described database.
The automatic generation method of 13. web system according to claim 8, is characterized in that, also comprise:
By detecting the operational motion of user, determination operation object and mode of operation, to generate described default configuration file.
The automatic generation method of 14. web system according to claim 8, is characterized in that, the process setting up control strategy comprises:
According to the framework type that user selects, read the predetermined control strategy that described framework type is corresponding;
Or according to the user's configuration-direct received, set up the control strategy of configuration in real time.
CN201310412990.5A 2013-09-11 2013-09-11 The automatically generating device and automatic generation method of web system Expired - Fee Related CN104424338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310412990.5A CN104424338B (en) 2013-09-11 2013-09-11 The automatically generating device and automatic generation method of web system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310412990.5A CN104424338B (en) 2013-09-11 2013-09-11 The automatically generating device and automatic generation method of web system

Publications (2)

Publication Number Publication Date
CN104424338A true CN104424338A (en) 2015-03-18
CN104424338B CN104424338B (en) 2018-02-02

Family

ID=52973312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310412990.5A Expired - Fee Related CN104424338B (en) 2013-09-11 2013-09-11 The automatically generating device and automatic generation method of web system

Country Status (1)

Country Link
CN (1) CN104424338B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793961A (en) * 2015-05-10 2015-07-22 黄伟 Quick JavaWeb development method and system using native Web codes
CN105262596A (en) * 2015-11-24 2016-01-20 北京锤子数码科技有限公司 Network authentication automatic login method and system
CN105677347A (en) * 2016-01-05 2016-06-15 浪潮通用软件有限公司 Method and device for processing data
CN106021211A (en) * 2016-05-18 2016-10-12 山东达创网络科技股份有限公司 Intelligent form system and generation method thereof
CN106648587A (en) * 2016-09-28 2017-05-10 福州宇嘉软件科技有限公司 Annotation-based Web application code generation method
CN106648690A (en) * 2016-12-29 2017-05-10 北京恒华伟业科技股份有限公司 Code automatic generation method and apparatus
CN106951233A (en) * 2017-03-02 2017-07-14 广州天高软件科技有限公司 Mixed mode smart mobile phone application development framework
CN107249106A (en) * 2017-04-28 2017-10-13 太仓鸿策拓达科技咨询有限公司 A kind of production of film and TV changing interface system
CN107491478A (en) * 2017-07-03 2017-12-19 广东南方数码科技股份有限公司 Data processing method, electronic equipment and storage medium based on flow chart directly perceived
CN108614693A (en) * 2018-03-21 2018-10-02 阿里巴巴集团控股有限公司 It is a kind of for the processing method of page assembly, device and equipment
CN108984653A (en) * 2018-06-27 2018-12-11 广州市南方人力资源评价中心有限公司 A method of realizing the online development management of multisystem
CN109284469A (en) * 2018-10-23 2019-01-29 中山市晋华软件科技有限公司 Webpage development frame
CN109783555A (en) * 2018-12-13 2019-05-21 东软集团股份有限公司 Form templat storage method, device, storage medium and electronic equipment
CN109783509A (en) * 2019-01-04 2019-05-21 中国银行股份有限公司 SQL scenario generation method and device
CN110019307A (en) * 2017-12-28 2019-07-16 阿里巴巴集团控股有限公司 Data processing method and device
CN111026732A (en) * 2019-12-03 2020-04-17 深圳中科保泰科技有限公司 Dynamic patrolling method and system
CN111078213A (en) * 2018-10-18 2020-04-28 马上消费金融股份有限公司 Code generation method and code generation device
CN111309316A (en) * 2020-01-16 2020-06-19 深圳壹账通智能科技有限公司 Web frame model establishing method and device
CN111475143A (en) * 2020-04-07 2020-07-31 四川虹美智能科技有限公司 Method and device for customizing software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030023953A1 (en) * 2000-12-04 2003-01-30 Lucassen John M. MVC (model-view-conroller) based multi-modal authoring tool and development environment
CN101694618A (en) * 2009-09-01 2010-04-14 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN102117203A (en) * 2009-12-30 2011-07-06 上海杉达学院 Information management system based on Struts frame
CN102650952A (en) * 2011-02-28 2012-08-29 北京航空航天大学 Modeling tool order calling method and system based on MVC framework

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030023953A1 (en) * 2000-12-04 2003-01-30 Lucassen John M. MVC (model-view-conroller) based multi-modal authoring tool and development environment
CN101694618A (en) * 2009-09-01 2010-04-14 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN102117203A (en) * 2009-12-30 2011-07-06 上海杉达学院 Information management system based on Struts frame
CN102650952A (en) * 2011-02-28 2012-08-29 北京航空航天大学 Modeling tool order calling method and system based on MVC framework

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JOSE CARLOS CASTILLO ETAL.: "A Multisensory Monitoring and Interpretation Framework Based on the Model-View-Controller Paradigm", 《INTERNATIONAL WORK-CONFERENCE ON THE INTERPLAY BETWEEN NATURALAND ARTIFICIAL COMPUTATION 》 *
刘坤彪等: "基于MVC模式的Web应用开发研究", 《浙江交通职业技术学院学报》 *
王斐: "MVC设计模式中视图层的改进", 《科学技术与工程》 *

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793961A (en) * 2015-05-10 2015-07-22 黄伟 Quick JavaWeb development method and system using native Web codes
CN105262596B (en) * 2015-11-24 2019-03-15 北京字节跳动网络技术有限公司 A kind of network authentication automatic logging method and system
CN105262596A (en) * 2015-11-24 2016-01-20 北京锤子数码科技有限公司 Network authentication automatic login method and system
CN105677347A (en) * 2016-01-05 2016-06-15 浪潮通用软件有限公司 Method and device for processing data
CN106021211A (en) * 2016-05-18 2016-10-12 山东达创网络科技股份有限公司 Intelligent form system and generation method thereof
CN106648587A (en) * 2016-09-28 2017-05-10 福州宇嘉软件科技有限公司 Annotation-based Web application code generation method
CN106648690A (en) * 2016-12-29 2017-05-10 北京恒华伟业科技股份有限公司 Code automatic generation method and apparatus
CN106648690B (en) * 2016-12-29 2020-04-07 北京恒华伟业科技股份有限公司 Automatic code generation method and device
CN106951233A (en) * 2017-03-02 2017-07-14 广州天高软件科技有限公司 Mixed mode smart mobile phone application development framework
CN106951233B (en) * 2017-03-02 2020-04-17 广州天高软件科技有限公司 Mixed-mode smart phone application development framework system
CN107249106A (en) * 2017-04-28 2017-10-13 太仓鸿策拓达科技咨询有限公司 A kind of production of film and TV changing interface system
CN107491478A (en) * 2017-07-03 2017-12-19 广东南方数码科技股份有限公司 Data processing method, electronic equipment and storage medium based on flow chart directly perceived
CN110019307A (en) * 2017-12-28 2019-07-16 阿里巴巴集团控股有限公司 Data processing method and device
CN110019307B (en) * 2017-12-28 2023-09-01 阿里巴巴集团控股有限公司 Data processing method and device
CN108614693A (en) * 2018-03-21 2018-10-02 阿里巴巴集团控股有限公司 It is a kind of for the processing method of page assembly, device and equipment
CN108984653A (en) * 2018-06-27 2018-12-11 广州市南方人力资源评价中心有限公司 A method of realizing the online development management of multisystem
CN111078213A (en) * 2018-10-18 2020-04-28 马上消费金融股份有限公司 Code generation method and code generation device
CN111078213B (en) * 2018-10-18 2024-01-19 马上消费金融股份有限公司 Code generation method and code generation device
CN109284469A (en) * 2018-10-23 2019-01-29 中山市晋华软件科技有限公司 Webpage development frame
CN109783555B (en) * 2018-12-13 2021-07-30 东软集团股份有限公司 Form template storage method and device, storage medium and electronic equipment
CN109783555A (en) * 2018-12-13 2019-05-21 东软集团股份有限公司 Form templat storage method, device, storage medium and electronic equipment
CN109783509A (en) * 2019-01-04 2019-05-21 中国银行股份有限公司 SQL scenario generation method and device
CN111026732A (en) * 2019-12-03 2020-04-17 深圳中科保泰科技有限公司 Dynamic patrolling method and system
CN111026732B (en) * 2019-12-03 2023-11-17 深圳块织类脑智能科技有限公司 Dynamic inspection tour method and system
CN111309316A (en) * 2020-01-16 2020-06-19 深圳壹账通智能科技有限公司 Web frame model establishing method and device
CN111475143A (en) * 2020-04-07 2020-07-31 四川虹美智能科技有限公司 Method and device for customizing software

Also Published As

Publication number Publication date
CN104424338B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN104424338A (en) Automatic generation device and automatic generation method for web system
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
WO2019109485A1 (en) Echarts tool-based chart making method, apparatus and device, and medium
RU2536390C2 (en) Automated report generation method
CN103631597B (en) WEB list engine apparatus based on XML and method
CN103383645A (en) Code generation method and system
AU2004202329A1 (en) Framework for creating modular web applications
CN103853543A (en) Method used for quickly constructing forms in enterprise information system development process
WO2014045826A1 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
CN103631877A (en) Webpage table processing method
US11733973B2 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
CN104598233A (en) Code generation method
US20190005228A1 (en) Trusted and untrusted code execution in a workflow
JP2008203912A (en) Screen forming apparatus, method and program
JP2012064207A (en) Host device and content display method of the same
CN104834715A (en) Website generating method and system based on components and container
WO2016201813A1 (en) Dynamic layout method and system based on android
TWI714514B (en) Node name diversified hierarchical group management device and setting method thereof
JP2014059699A (en) Demo application generation system and demo application generation program
CN109375911A (en) A method of FreeMarker template is rendered based on SpringMVC
JP7048765B2 (en) Server control framework for controlling table-structured widgets
CN103530122A (en) Programmable instrument standard command generation method based on graphical interface
CN118132067A (en) Micro-module monitoring system and configuration interface modification method, device and medium thereof
KR20150099279A (en) A system for providing an application developing environment
Freeman et al. Getting Started with Identity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee after: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee after: FOUNDER APABI TECHNOLOGY Ltd.

Patentee after: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: FOUNDER APABI TECHNOLOGY Ltd.

Patentee before: FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20220916

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: FOUNDER APABI TECHNOLOGY Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: FOUNDER APABI TECHNOLOGY Ltd.

Patentee before: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180202

CF01 Termination of patent right due to non-payment of annual fee