CN104424338B - The automatically generating device and automatic generation method of web system - Google Patents

The automatically generating device and automatic generation method of web system Download PDF

Info

Publication number
CN104424338B
CN104424338B CN201310412990.5A CN201310412990A CN104424338B CN 104424338 B CN104424338 B CN 104424338B CN 201310412990 A CN201310412990 A CN 201310412990A CN 104424338 B CN104424338 B CN 104424338B
Authority
CN
China
Prior art keywords
database
web system
subelement
user
generate
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.)
Expired - Fee Related
Application number
CN201310412990.5A
Other languages
Chinese (zh)
Other versions
CN104424338A (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 a kind of automatically generating device of web system, including:View layer generation unit, the form interface of the view layer for generating the web system;Model layer generation unit, including:Database subelement, for establishing database, the database table corresponding with the form interface is stored with the database;Class creates subelement, for creating the business processing class for being used for being operated to the database, to complete the generation of the model layer of the web system;Key-course generation unit, including:Functional configuration subelement, for carrying out functional configuration according to default configuration file;Strategy establishes subelement, for establishing control strategy, to complete the generation of the key-course of the web system.The invention also provides the automatic generation method of corresponding web system.By technical scheme, the automation process in web system development process can be improved, reduces manual intervention, simplifies development process.

Description

The automatically generating device and automatic generation method of web system
Technical field
The present invention relates to technical field of data processing, the automatically generating device in particular to a kind of web system and one The automatic generation method of kind web system.
Background technology
In the exploitation of web system, designers are in face of how framework web system is more convenient, simpler to reach exploitation When clean, MVC(Model (model)-view (view)-controller (controller)) architecture mode has been increasingly becoming master Flow Technique.MVC is a kind of software component pattern, and the method tissue code of separation is shown with a kind of service logic and data, this The supposed premise of method is if service logic is focused into an inside components, and interface and user surround the interaction of data It can be modified with personalized customization without writing service logic again.MVC is applied in the graphical use of a logic In the structure at family interface, realize and map traditional input, processing and output function.
MVC is by M(Model layer)And V(View layer)Realize code dehind so that same program can use difference The form of expression.For example a collection of statistics can be represented with block diagram, pie chart respectively.C(Key-course)Existing purpose is then It is to ensure that M(Model layer)And V(View layer)Synchronization, once M(Model layer)Change, V(View layer)Should synchronized update.It is strong The input, processing and output that make application program of property processed separate.Based on mentioned above principle, weblication is divided into three cores Part:Model, view, controller, each of which handle the task of oneself.
Nowadays industry also has a MVC architectural schemes that are many ripe and being widely used, such as Struts, Spring, Hibernate etc..When web system framework is carried out using MVC design pattern, being fully able to will by configuration file for they The C of decoupling(Key-course)And M(Model layer)Tight association gets up and independently of each other, and by strategy pattern and towards section The technology of programming, it can intelligently automate generating portion M(Model layer)And C(Key-course)Code.
However, the solution of the various MVC proposed in correlation technique, it is automatic to remain in the with different levels code in portion Metaplasia into, or some details automation, a whole set of technical scheme can not be provided carry out to the whole levels of MVC carry out The automation generation of the code unrelated with service logic.
Therefore, a kind of development technique of new web system how is provided so that the exploitation of web system more automates, and allows Program developer is more concerned with specific service logic, improves operating efficiency.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of Auto of new web system, can improve Automation process in web system development process, manual intervention is reduced, simplify development process.
In view of this, the present invention proposes a kind of automatically generating device of web system, including:View layer generation unit, use In the form interface for the view layer for generating the web system;Model layer generation unit, including:Database subelement, is used for Database is established, is stored with the database table corresponding with the form interface in the database, in the database table Field and the attribute information of each form controls in the form interface correspond;Class create subelement, create for pair The business processing class that the database is operated, to complete the generation of the model layer of the web system;Key-course generation is single Member, including:Functional configuration subelement, for carrying out functional configuration according to default configuration file;Strategy establishes subelement, is used for Control strategy is established, to complete the generation of the key-course of the web system.
In the technical scheme, obtained by the attribute of the form interface to view layer, and data corresponding to foundation Storehouse so that the automatic incidence relation set up between view layer and model layer, without being matched somebody with somebody by completely manual be associated of user Put, improve the automaticity of system development, be favorably improved operating efficiency.Meanwhile it is also provided by the industry automatically generated Business processing class, completes concrete operations of the key-course to the database of model layer, realizes between view layer, model layer and key-course Tight association, help to reduce artificial intervention degree.
According to another aspect of the invention, it is also proposed that a kind of automatic generation method of web system, including:Described in generation The form interface of the view layer of web system;Database is established, is stored with the database corresponding with the form interface Database table, a pair of the attribute information 1 of field in the database table and each form controls in the form interface Should;The business processing class for being operated to the database is created, to complete the generation of the model layer of the web system; Functional configuration is carried out according to default configuration file, and establishes control strategy, to complete the life of the key-course of the web system Into.
In the technical scheme, obtained by the attribute of the form interface to view layer, and data corresponding to foundation Storehouse so that the automatic incidence relation set up between view layer and model layer, without being matched somebody with somebody by completely manual be associated of user Put, improve the automaticity of system development, be favorably improved operating efficiency.Meanwhile it is also provided by the industry automatically generated Business processing class, completes concrete operations of the key-course to the database of model layer, realizes between view layer, model layer and key-course Tight association, help to reduce artificial intervention degree.
By above technical scheme, the automation process in web system development process can be improved, reduces manual intervention, Simplify development process.
Brief description of the drawings
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 of automation generation web system according to an embodiment of the invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, the present invention is not limited to following public specific real Apply the limitation of example.
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, including:View layer generation is single Member, the form interface of the view layer for generating the web system;Model layer generation unit, including:Database is single Member, for establishing database, the database table corresponding with the form interface, the database are stored with the database Field and the attribute information of each form controls in the form interface in table correspond;Class creates subelement, creates For the business processing class operated to the database, to complete the generation of the model layer of the web system;Key-course is given birth to Into unit, including:Functional configuration subelement, for carrying out functional configuration according to default configuration file;Strategy establishes subelement, For establishing control strategy, to complete the generation of the key-course of the web system.
In the technical scheme, obtained by the attribute of the form interface to view layer, and data corresponding to foundation Storehouse so that the automatic incidence relation set up between view layer and model layer, without being matched somebody with somebody by completely manual be associated of user Put, improve the automaticity of system development, be favorably improved operating efficiency.Meanwhile it is also provided by the industry automatically generated Business processing class, completes concrete operations of the key-course to the database of model layer, realizes between view layer, model layer and key-course Tight association, help to reduce artificial intervention degree.
In the above-mentioned technical solutions, it is preferable that the view layer generation unit includes:Subelement is selected, is connect for basis The selection instruction of the user received, select form controls and view type;List generates subelement, for the key entry according to acquisition Information, it is attribute information and method information corresponding to the addition of each form controls, to generate the form interface of the view layer.
In the technical scheme, for being write without performing to specific code, it is only necessary to build to view type and in advance Vertical visual control model is selected, you can by automatically generating corresponding code from the background, is favorably improved operating efficiency. Then it is each specific for the system architecture being made up of default control model by keying in attribute information and method information Control realizes functionally and logically relation corresponding to setting, but these operations all without writing code manually by user, it is only necessary to closes Specific service logic is noted, improves automaticity, is favorably improved operating efficiency.
In any of the above-described technical scheme, it is preferable that the Database subelement is used for:Establishment includes the list The JavaBean components of the attribute information of each form controls in interface;According to the attributive character of required database, generation Database table, the field in the database table correspond with all properties information in the JavaBean components;By institute Database table is stated to store to database.
In the technical scheme, using dynamic proxy technology, the attribute of the form controls of view layer is entered by JavaBean Row is obtained, and database table corresponding to foundation, and association is established so as to automatic between view layer and model layer, and in view Automatic establish associates between layer, model layer and database, is set manually without user, contributes to the automation journey of lifting system Degree, improve the operating efficiency of user.
In any of the above-described technical scheme, it is preferable that the JavaBean components are inherited for operating the database Foundation class;And the business processing class includes Agent components and the JavaBean components, wherein, the Agent components pass through The JavaBean components are called, realize the operation to the database.
In the technical scheme, by inheriting foundation class by JavaBean components, the concrete operations to database are realized, and Realize that specific request during to system operation responds by Agent components, so as to realize the clearly division to multiple functions, have Help specific debugging and control.
In any of the above-described technical scheme, it is preferable that the model layer generation unit also includes:Template generation subelement, For generating and storing the SQL templates statement associated with the business processing class;Wherein, the business processing class will be from reception To operation requests in the information that parses be added to the SQL templates statements, perform sentence to generate SQL, and by described SQL performs sentence, realizes the operation to the database.
In the technical scheme, by generating SQL templates statements, then when the request to user responds, without every It is secondary all to write SQL query statement again, and directly by the mark of the data of desired operation(Such as ID of concrete database table) Relevant position added in SQL templates statements, you can the operation to database is directly realized by, helps to shorten the response time, Improve operational efficiency.
In any of the above-described technical scheme, it is preferable that the key-course generation unit also includes:File generated subelement, For the operational motion by detecting user, operation object and mode of operation are determined, to generate the default configuration file.
In the technical scheme, in the generating process of key-course, during initialization procedure and specific functional configuration, Need to use the configuration file previously generated.The generating process of configuration file is without user's manual programming, it is only necessary to is held by user The row establishment in such as path, the selection of object, the selection of mode of operation operation, system can just automatically generate corresponding configuration text Part so that the generating process of configuration file more automates, and is favorably improved operating efficiency.
In any of the above-described technical scheme, it is preferable that the strategy is established subelement and is used for:The framework selected according to user Type, read predetermined control strategy corresponding to the framework type;Or instructed according to the user configuration received, foundation is matched somebody with somebody in real time The control strategy put.
In the technical scheme, user can be selected the framework type pre-set, then can be directly read pair Should be in control strategy corresponding to selected framework, to improve efficiency;User can also configure new control according to actual conditions Strategy, with suitable for 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 Fig. 2 the automatic generation method of web system according to an embodiment of the invention, including:Generate the web The form interface of the view layer of system;Database is established, the number corresponding with the form interface is stored with the database According to storehouse table, field and the attribute information of each form controls in the form interface in the database table correspond; The business processing class for being operated to the database is created, to complete the generation of the model layer of the web system;According to Default configuration file carries out functional configuration, and establishes control strategy, to complete the generation of the key-course of the web system.
In the technical scheme, obtained by the attribute of the form interface to view layer, and data corresponding to foundation Storehouse so that the automatic incidence relation set up between view layer and model layer, without being matched somebody with somebody by completely manual be associated of user Put, improve the automaticity of system development, be favorably improved operating efficiency.Meanwhile it is also provided by the industry automatically generated Business processing class, completes concrete operations of the key-course to the database of model layer, realizes between view layer, model layer and key-course Tight association, help to reduce artificial intervention degree.
In the above-mentioned technical solutions, it is preferable that generating the process of the form interface includes:According to the user's received Selection instruction, form controls and view type are selected, and according to the key entry information of acquisition, for corresponding to the addition of each form controls Attribute information and method information, to generate the form interface of the view layer.
In the technical scheme, for being write without performing to specific code, it is only necessary to build to view type and in advance Vertical visual control model is selected, you can by automatically generating corresponding code from the background, is favorably improved operating efficiency. Then it is each specific for the system architecture being made up of default control model by keying in attribute information and method information Control realizes functionally and logically relation corresponding to setting, but these operations all without writing code manually by user, it is only necessary to closes Specific service logic is noted, improves automaticity, is favorably improved operating efficiency.
In any of the above-described technical scheme, it is preferable that establishing the process of the database includes:Establishment includes the list The JavaBean components of the attribute information of each form controls in interface;According to the attributive character of required database, generation Database table, the field in the database table correspond with all properties information in the JavaBean components;By institute Database table is stated to store to database.
In the technical scheme, using dynamic proxy technology, the attribute of the form controls of view layer is entered by JavaBean Row is obtained, and database table corresponding to foundation, and association is established so as to automatic between view layer and model layer, and in view Automatic establish associates between layer, model layer and database, is set manually without user, contributes to the automation journey of lifting system Degree, improve the operating efficiency of user.
In any of the above-described technical scheme, it is preferable that also include:The JavaBean components are inherited for operating the number According to the foundation class in storehouse;And the business processing class includes Agent components and the JavaBean components, wherein, it is described to act on behalf of group Part realizes the operation to the database by calling the JavaBean components.
In the technical scheme, by inheriting foundation class by JavaBean components, the concrete operations to database are realized, and Realize that specific request during to system operation responds by Agent components, so as to realize the clearly division to multiple functions, have Help specific debugging and control.
In any of the above-described technical scheme, it is preferable that also include:Generate and store associated with the business processing class SQL templates statements;The information parsed from the operation requests received is added to the SQL templates by the business processing class Sentence, sentence is performed to generate SQL, and sentence is performed by the SQL, realize the operation to the database.
In the technical scheme, by generating SQL templates statements, then when the request to user responds, without every It is secondary all to write SQL query statement again, and directly by the mark of the data of desired operation(Such as ID of concrete database table) Relevant position added in SQL templates statements, you can the operation to database is directly realized by, helps to shorten the response time, Improve operational efficiency.
In any of the above-described technical scheme, it is preferable that also include:By detecting the operational motion of user, it is determined that operation pair As and mode of operation, to generate the default configuration file.
In the technical scheme, in the generating process of key-course, during initialization procedure and specific functional configuration, Need to use the configuration file previously generated.The generating process of configuration file is without user's manual programming, it is only necessary to is held by user The row establishment in such as path, the selection of object, the selection of mode of operation operation, system can just automatically generate corresponding configuration text Part so that the generating process of configuration file more automates, and is favorably improved operating efficiency.
In any of the above-described technical scheme, it is preferable that establishing the process of control strategy includes:The framework selected according to user Type, read predetermined control strategy corresponding to the framework type;Or instructed according to the user configuration received, foundation is matched somebody with somebody in real time The control strategy put.
In the technical scheme, user can be selected the framework type pre-set, then can be directly read pair Should be in control strategy corresponding to selected framework, to improve efficiency;User can also configure new control according to actual conditions Strategy, with suitable for different actual conditions.
Fig. 3 shows the principle schematic of automation generation web system according to an embodiment of the invention.
With reference to Fig. 3, the operation principle that web system is generated to the automation based on embodiments of the invention is carried out in detail Explanation.
It is assumed that in the web system development platform of the present invention, include the plateform system 302 on basis, in addition to for other tools Such as view layer platform 302A, model layer platform 302B, the key-course platform 302C of body function, to realize specific web system Exploitation.
When need perform web system exploitation when, it is necessary to by plateform system 302 it is advance to user progress and completion setting or Configuration is read out, to realize the initialization of system and functional configuration.
First, view layer automatically generates
In the present embodiment, the automation for mainly realizing view layer by view layer platform 302A generates.Specifically, Ke Yitong The mode for crossing browser realizes interactive process, and user is only needed by way of mouse drag and keyboard operation, i.e., The generation of the page can be achieved.
1st, view type
User according to demand, selects desired view type, such as HTML, jsp, freemarker etc..
2nd, design drawing
In particular it is required that provide visual view control by view layer platform 302A, then user can according to itself Demand, view control is selected and dragged using mouse, you can form corresponding design drawing.For example view control therein can be with Using W3C(World Wide Web Consortium, World Wide Web Consortium)Control inside standard, it is only necessary to understand W3C phase Close specification, it is not necessary to spend again any time and energy goes to learn new control and API.
3rd, list
The design drawing on view type and design platform that view layer platform 302A is selected according to user, you can automatically generate Corresponding list.
Wherein, the association and interaction between the view control on list, can be using JavaScript and DOM technologies come real It is existing.For example some basic DOM operations can be provided in view layer platform 302A(Method), so that programmer is selected;Together When, programmer can also self-defined DOM methods, and associate to specific view control.And list interacts with backstage, can adopt With such as ajax modes, or the mode that the interim form labels of generation are submitted.
4th, the embodiment of " login interface "
It is assumed that user needs to design the web system of one " login interface ", then include for the generating process of view layer:
1)In view design platform 302A control selection interface, a user name input frame is pulled(input-text Label)With a Password Input frame(Input-password labels), and pull two buttons:" login "(input-button Label), " replacement "(Input-button labels).
2)Selection needs the form types generated(Such as JSP, HTML):jsp;Input form ID(Unique sign): login.jsp。
3)Edit the attribute of each view control.For example user name input frame editor's attribute is double-clicked, input ID: userName;Password Input frame editor's attribute is double-clicked, inputs ID:userPassword;Double-click login button editor's attribute, input ID:URL is submitted in loginButton, input:login.do;Input needs the form ID submitted:loginForm;Double-click and reset Button editor's attribute, input ID:resetButton;Input needs the form ID reset:loginForm.
4)View layer platform 302A can generate javaScript methods for each view control automatically.For example give LoginButton is submitted:An interim form is produced, ID is:LoginForm, content contain all on the page input pair As(Password Input frame, Password Input frame);Action is:login.do;Last form.submit ().
Certainly, if user needs oneself to write javaScript methods and logged in, the thing of login button can be edited Part attribute, and it is changed to customized method.
5)Automation equipment generates corresponding form interface on backstage according to a series of above design procedures.
2nd, model layer automatically generates
1、JavaBean
Model layer platform 302B uses dynamic proxy technology, the class name using form ID as JavaBean(For each list Generate a corresponding JavaBean), on list all html can input label correspond to JavaBean attribute, it is automatic raw Into corresponding JavaBean.
2nd, database
The information included in the JavaBean of generation is obtained, i.e., the attribute of the view control in list is corresponded in view layer Information, and the information according to JavaBean and the selected type of database used, version and framework, automatically generate corresponding Database script.
By the database script of above-mentioned generation, automatically generate corresponding with JavaBean(Such as the ID of database table with JavaBean ID, the ID of corresponding list are identical)Database table, the field inside database table and the category inside Javabean Property correspond, so as to complete the establishment to database.
Meanwhile each JavaBean inherits a foundation class, the foundation class mainly grasps JavaBean and database Associate, the operation to database can be realized, such as increase, delete, change, look into.
3、Action
Indeed, it is possible to the operation to database is performed directly in response to the request of key-course by JavaBean, but in order to right Difference in functionality makes a distinction, and is easy to the debugging and the division of labor of system, and the system is also by creating Action, so as to share to key-course Request.
Action is business processing class, is that one generated according to JavaBean attribute and method has master database Operation(Additions and deletions, which change, looks into)Operation class, the Action can be by calling JavaBean come operating database.
4th, SQL statement template
While Action is produced, model layer platform 302B can also produce a SQL configuration corresponding with the Action File, operations of the Action to database is supported with auxiliary.Specifically, the SQL configuration files include the SQL to database manipulation Sentence template, then without regenerating SQL statement every time, as long as and according to the request of key-course, by the Data Identification of association(Such as ID of database table etc.)Corresponding position, is favorably improved operating efficiency added in SQL statement template.
Certainly, programmer can be modified according to actual conditions to Action, and SQL configuration files can also be carried out Modification;And the modification of the operating function for database, can also automatic synchronization into Action and SQL configuration files.
In the above-mentioned technical solutions, by the parsing to view layer forms pages, using the various input controls of list as Attribute, and generate corresponding function(Method), so as to obtain JavaBean.Above-mentioned dynamic proxy technology can be very good will be preceding The view page of platform associates with the specific business logic processing class of background model layer, allows programmer only to need to be concerned about specific industry The processing for logic of being engaged in, without going to consider the associating of foreground and backstage again, communicating, so as to lift operating efficiency.
5th, the embodiment of " login interface "
1)According to the list of generation, a class is created on backstage, its title is according to form ID(To establish association): Login_jsp.java, each attribute are consistent with the input control of list:username、usePassword;Corresponding method: getUserName()、setUserName()、getUserPassword()、setUserPassword()。
2)Generate SQL scripts.Specific code can be:
3)Generate foundation class.Specific code can be:
4)Generate Action classes.Specific code can be:
3rd, key-course automatically generates
1st, user configuration
After key-course platform 302C initialization system configurations, into key-course administration interface 304, and matching somebody with somebody according to user Put, automatically generate key-course.
User needs that corresponding configuration file is generated in advance, in the initial configuration and control process of key-course Functional configuration.User is without specifically write the function code of configuration file, it is only necessary to the object that is operated to needs, mode etc. Selected or created, you can by automatically generating corresponding code, such as specifying for path from the background, it is only necessary to directly create The path;For specifying for operation object, it is only necessary to directly choose the object.
2nd, logic is handled
Except above-mentioned configuration, it is also necessary to set specific processing logic.
1)Key-course platform 302C provides a variety of frameworks pre-set, and user can directly select it, then control Preparative layer platform 302C directly can will handle Logic application in current web system corresponding to selected framework.Specifically, lead to Cross the configuration file of the types such as the write-in of above-mentioned processing logic web, xml to realize.
2)Programmer can not also select predefined framework, but processing logic is redefined according to actual conditions. Specifically, for example key-course platform 302C can automatically generate blocker class and carry out certain specific format knot that hook procedure person is configured The request URL of tail.
More specifically, such as:Programmer is configured with the entitled .do of system URL suffix in key-course administration interface 304, then flat Platform system 302 can automatically generate controller, be matched somebody with somebody to intercept requests of all .do as suffix name, and during according to Design view layer The path put and ID, blocker is sent to as request URL.Blocker parses obtained URL and is distributed to corresponding Action(Business processing class).
3rd, the embodiment of " login interface "
1)Login interface(List)It is arranged to be submitted to login.do on view layer design platform 302A.
2)The request that blocker intercepts all .do is configured on controller management interface 304.
3)The relevant parameter of configuration is write into the web.xml files of the system of automation generation.
4)When clicking on login button, parameter can be sent to login.do, the blocker inside web.xml intercepts this Request(request), just by the request analysis and it is sent in loginAction, is then handled by loginAction The specifically processing procedure such as database manipulation.
Technical scheme is described in detail above in association with accompanying drawing, the invention provides a kind of the automatic of web system Generating means and a kind of automatic generation method of web system, can improve the automation process in web system development process, subtract Few manual intervention, simplifies development process.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (12)

  1. A kind of 1. automatically generating device of web system, it is characterised in that including:
    View layer generation unit, the form interface of the view layer for generating the web system;
    Model layer generation unit, including:
    Database subelement, for establishing database, it is stored with the database corresponding with the form interface Database table, a pair of the attribute information 1 of field in the database table and each form controls in the form interface Should;
    Class creates subelement, the business processing class for being operated to the database is created, to complete the web system The generation of model layer;
    Key-course generation unit, including:
    Functional configuration subelement, for carrying out functional configuration according to default configuration file;
    Strategy establishes subelement, for establishing control strategy, to complete the generation of the key-course of the web system;
    The view layer generation unit includes:
    Subelement is selected, for the selection instruction according to the user received, selects form controls and view type;
    List generates subelement, for the key entry information according to acquisition, for attribute information corresponding to the addition of each form controls and Method information, to generate the form interface of the view layer.
  2. 2. the automatically generating device of web system according to claim 1, it is characterised in that Database is single Member is used for:
    Create the JavaBean components of the attribute information comprising each form controls in the form interface;
    According to the attributive character of required database, generate database table, the field in the database table with it is described All properties information in JavaBean components corresponds;
    The database table is stored to database.
  3. 3. the automatically generating device of web system according to claim 2, it is characterised in that
    The JavaBean components inherit the foundation class for operating the database;And
    The business processing class includes Agent components and the JavaBean components, wherein, the Agent components are by calling JavaBean components are stated, realize the operation to the database.
  4. 4. the automatically generating device of web system according to claim 1, it is characterised in that the model layer generation unit Also include:
    Template generation subelement, for generating and storing the SQL templates statement associated with the business processing class;
    Wherein, the information parsed from the operation requests received is added to the SQL templates language by the business processing class Sentence, sentence is performed to generate SQL, and sentence is performed by the SQL, realize the operation to the database.
  5. 5. the automatically generating device of web system according to claim 1, it is characterised in that the key-course generation unit Also include:
    File generated subelement, for the operational motion by detecting user, operation object and mode of operation are determined, to generate State default configuration file.
  6. 6. the automatically generating device of web system according to claim 1, it is characterised in that the strategy establishes subelement For:
    The framework type selected according to user, reads predetermined control strategy corresponding to the framework type;
    Or instructed according to the user configuration received, establish the control strategy configured in real time.
  7. A kind of 7. automatic generation method of web system, it is characterised in that including:
    Generate the form interface of the view layer of the web system;
    Database is established, the database table corresponding with the form interface, the database table are stored with the database In field and the form interface in the attribute information of each form controls correspond;
    The business processing class for being operated to the database is created, to complete the generation of the model layer of the web system;
    Functional configuration is carried out according to default configuration file, and establishes control strategy, to complete the key-course of the web system Generation;
    Generating the process of the form interface includes:
    According to the selection instruction of the user received, form controls and view type are selected, and according to the key entry information of acquisition, be Attribute information and method information corresponding to each form controls addition, to generate the form interface of the view layer.
  8. 8. the automatic generation method of web system according to claim 7, it is characterised in that establish the mistake of the database Journey includes:
    Create the JavaBean components of the attribute information comprising each form controls in the form interface;
    According to the attributive character of required database, generate database table, the field in the database table with it is described All properties information in JavaBean components corresponds;
    The database table is stored to database.
  9. 9. the automatic generation method of web system according to claim 8, it is characterised in that also include:
    The JavaBean components inherit the foundation class for operating the database;And
    The business processing class includes Agent components and the JavaBean components, wherein, the Agent components are by calling JavaBean components are stated, realize the operation to the database.
  10. 10. the automatic generation method of web system according to claim 7, it is characterised in that also include:
    Generate and store the SQL templates statement associated with the business processing class;
    The information parsed from the operation requests received is added to the SQL templates statements by the business processing class, with Generate SQL and perform sentence, and sentence is performed by the SQL, realize the operation to the database.
  11. 11. the automatic generation method of web system according to claim 7, it is characterised in that also include:
    By detecting the operational motion of user, operation object and mode of operation are determined, to generate the default configuration file.
  12. 12. the automatic generation method of web system according to claim 7, it is characterised in that establish the process of control strategy Including:
    The framework type selected according to user, reads predetermined control strategy corresponding to the framework type;
    Or instructed according to the user configuration received, establish the control strategy configured 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 CN104424338A (en) 2015-03-18
CN104424338B true 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)

Families Citing this family (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
CN105262596B (en) * 2015-11-24 2019-03-15 北京字节跳动网络技术有限公司 A kind of network authentication automatic logging 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
CN106648690B (en) * 2016-12-29 2020-04-07 北京恒华伟业科技股份有限公司 Automatic code generation method and device
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
CN110019307B (en) * 2017-12-28 2023-09-01 阿里巴巴集团控股有限公司 Data processing method and device
CN108614693B (en) * 2018-03-21 2022-06-24 创新先进技术有限公司 Processing method, device and equipment for page component
CN108984653A (en) * 2018-06-27 2018-12-11 广州市南方人力资源评价中心有限公司 A method of realizing the online development management of multisystem
CN111078213B (en) * 2018-10-18 2024-01-19 马上消费金融股份有限公司 Code generation method and code generation device
CN109284469B (en) * 2018-10-23 2021-01-05 中山市晋华软件科技有限公司 Webpage development framework
CN109783555B (en) * 2018-12-13 2021-07-30 东软集团股份有限公司 Form template storage method and device, storage medium and electronic equipment
CN109783509A (en) * 2019-01-04 2019-05-21 中国银行股份有限公司 SQL scenario generation method and device
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996800B2 (en) * 2000-12-04 2006-02-07 International Business Machines Corporation MVC (model-view-controller) based multi-modal authoring tool and development environment
CN101694618B (en) * 2009-09-01 2013-03-06 卡斯柯信号有限公司 Automatic mapping method of model layer and view layer data suitable for AJAX frame

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (1)

* Cited by examiner, † Cited by third party
Title
基于MVC模式的Web应用开发研究;刘坤彪等;《浙江交通职业技术学院学报》;20130331;第14卷(第1期);34-40 *

Also Published As

Publication number Publication date
CN104424338A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104424338B (en) The automatically generating device and automatic generation method of web system
CN106484393B (en) Visual view design method
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
US20170344227A1 (en) Visual designer for editing large schemaless xml file
CN103631597B (en) WEB list engine apparatus based on XML and method
US11714625B2 (en) Generating applications for versatile platform deployment
CN106250134B (en) The code automatic generation method of single language
KR20150066377A (en) Simulation framework system based on DEVS and simulation method using the same
KR101519381B1 (en) Apparatus and method for making web application using html5
US11010140B2 (en) Integration of workflow and logical data objects using visual programming
JP2004362577A (en) Method and device for generating graphical user interface
Chikov et al. MVC Framework Approach in the Online assisted platform for Computer-aided Design in Communications–Online-CADCOM
JP2012093988A (en) Information processing device, control method for information processing device, and program
CN103530122A (en) Programmable instrument standard command generation method based on graphical interface
JP2003223321A (en) Software component preparing method and program and software component preparing device
KR20150099348A (en) A recording media recognized by computer for providing an application developing environment program
CN118259902A (en) Flexible layout method for upper computer interface based on database
MacDonald Web Controls
KR20150099281A (en) A system for providing an application developing environment
KR20150097143A (en) A method for providing an application developing environment
KR20150097144A (en) A method for providing an application developing environment
KR20150099277A (en) A system for providing an application developing environment
KR20150099285A (en) A device for providing an application developing environment
KR20150099278A (en) A system for providing an application developing environment
KR20150099275A (en) A system for providing an application developing environment

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
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.

TR01 Transfer of patent right
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.

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

Granted publication date: 20180202