Dodo Framework
Java Web-based framework for the development of automated code generation engine, developed to enhance the efficiency of + 90% , second-level back office systems generate. 10 sets of back-end management system templates , so you whim!
Advantage:
(1) repetitive tasks, code generation is no longer worry.
(2) save more time, you can: learn anything else ... ... do something else with you.
Get Started
The first step: POJO annotated entity classes
After the write Java entity classes, use Dodo annotation extension
@DodoField(name = "产品名称", sortSeq = 0, isRemoteCheck = true)
private String name;
@DodoField(name = "产品描述", sortSeq = 5, listable = false, isnullable = false, isRichText = true)
private String productDesc;
@DodoField(name = "产品价格", sortSeq = 1)
private BigDecimal price;
@DodoField(name = "产品积分", sortSeq = 2, max = Integer.MAX_VALUE + "", min = Integer.MIN_VALUE + "")
private int buyScore;
@DodoField(name = "产品状态", sortSeq = 4, isnullable = false, isRemoteCheck = false)
private ProductStatus productStatus;
@DodoField(name = "产品颜色", sortSeq = 5, isnullable = false, isColor = true)
private String productColor;
Step Two: Generate Code
Run the code generation engine to generate MVC, DB code data
16:56:21.791 [main] INFO c.g.f.p.counter.FileLineCounter - Congratulations:
16:56:21.791 [main] INFO c.g.f.p.counter.FileLineCounter - Finally:
16:56:21.791 [main] INFO c.g.f.p.counter.FileLineCounter - You have written: 43 files : 8670 lines
16:56:21.791 [main] INFO c.g.f.p.counter.FileLineCounter - Generate: 772 files : 381785 lines
16:56:21.791 [main] INFO c.g.f.p.counter.FileLineCounter - The percentage of generated code is 97.78%:
16:56:21.791 [main] INFO c.generate.utils.Step_4_GenerateCode -
16:56:21.791 [main] INFO c.generate.utils.Step_4_GenerateCode - ******************************************************
16:56:21.791 [main] INFO c.generate.utils.Step_4_GenerateCode - Step_4_GenerateCode ....Exec OK!
16:56:21.791 [main] INFO c.generate.utils.Step_4_GenerateCode - Take time -> 00:00:05:037
The third step: Coffee time
It was exciting, get away, I can not believe it! A cup of coffee to steady your nerves 82 years
What is Dodo?
The project summarized in one sentence: This is a Java Web development framework automation system based on code generation engine. Simply put, it is a Java Web framework plus a consolidated basis for code generation engine.
Learning cost is very low (a few notes, just use the Java entity classes), popular base frame (SpringMVC, Hibernate, Freemarker), instantly generate fully hand-written code, complete code comments, robust security, naming, high readability, maintainable, scalable and can be easily modified for specific needs.
(1) the security and stability of the base frame
Spring MVC-5.1, Hibernate-5.4, Freemarker, Druid frame based on a combination
Management System Security Framework: Spring Security-5.2
Security enhancements: Log salt, dynamic Salt, static Salt; Support backstage access address change at any time, by the operator on the line after the students modify, add security
8 years use practices, 0 problem reports
(2) MVC, DB full code generation
Full automatic code generation: enhanced annotation of Java entities, and then instantly generate MVC code for each layer; the code full annotation, modify and easy to maintain
Can be configured to generate versatile, easy to deal with demand; do not care about the database, the database tables automatically generated (with comments) , database table naming conventions, maintainable; basic data automatically generated;
Built-in seventeen kinds Detector, configuration problems discovered in advance, to ensure the normal operation of the generating system, foolproof
(3) saves development time
Learning cost is very low: only need to learn a few notes, and notes apply only to Java POJO class
Supports nearly 20 kinds of components, each component to get a comment, and supports a variety of verification, control, PDF automatic online preview, HTTP, automatic value, documents, video display, etc. automatically converted
Integrated micro letter SDK, more rapid development of micro-channel
HQLHelper: Chain write HQL query, without understanding HQL knowledge; additional support for JDBC
(4) simple and powerful online reporting
Online editing SQL, Configuration menu, configure the query conditions, paging screening, export Excel, and so on designated sub-view
(5) fine access control
Functional competence, fields permissions, data row-level permissions, buttons rights, and support for privilege delegation, privilege dynamic update
(6) complete logging
Business log, login log, request log, Slow Sql logs, login session backstage view, kicked
Features
- Basic framework simple and safe, everyone: the Spring MVC, the Spring Security, Hibernate, Freemarker, Druid
- Full automatic code generation: for Java entity annotation enhancements, and then instantly generate MVC code for each layer; the code full annotation, modify and easy to maintain
- Can be configured to generate versatile, easy to deal with demand: CRUD, bulk import and export, batch updates, a list of statistical charts, pop-up selection
- Do not care about the database, the database tables automatically generated (with comments), database table naming conventions, maintainable
- Automatic generation of basic data: menu, permissions, field permissions, roles, administrators, entities, field configuration, etc.
- Full pre-check code generation: built seventeen kinds Detector, will expose configuration issues before code generation, Ma Ma no longer have to worry about the generated code can not run, incorrect report
- Full internationalization support: menu, field, enumeration, prompt text, easyUI, ueditor, pagination, etc., a key switch
- Support for multiple components: string, text fields, rich text, files, documents, video, multi-file, location, color, password fields, numeric, integer, date, etc.
- Components support various check: is not empty, maximum and minimum, mail, phone, URL, credit card, IP address, date, custom regular expression
- Component supports a variety of control: the different components of different entry and presentation, HTTP, picture size check, automatic document conversion on-line preview, automatically convert videos online preview, pdf online preview, automatic and other value
- HQLHelper: Chain write HQL query, without understanding HQL knowledge; additional support for JDBC
- Sophisticated access control: functional competence, authority field, row-level data permissions, buttons rights, and support for privilege delegation, privilege dynamic update
- Simple and powerful online reporting: online editing SQL, Configuration menu, configure the query conditions, paging screening, export Excel, and so on designated sub-view
- Sound logging: Business log, login log, request log, Slow Sql logs, login session backstage view, kicked
- Cascade unlimited support: multiple sets of Cascade, Cascade mixed
- Support all kinds of trees: single tree table, multi-table tree, tree mix
- Extended support model (background): tagless, the background model by adding expansion modules to the virtual field model, support various components
- Free files automatically deleted: Upload junk files automatically recorded and automatically deleted (optional)
- Multiple Data Source Support
- Security enhancements: Log salt, dynamic Salt, static Salt; Support backstage access address change at any time, by the operator on the line after the students modify, add security
- More features in development ...
Online Demo (ten sets of templates)
DEMO amount of coding system just write a few entity classes only, all the rest of the code generated by the engine (MVC layers of code, database model annotated)
-
Apple: the traditional menu navigation + mode, jquery + html
-
Duke: easyui navigation tree frame + the html page mode, easyui + html
-
Fig: easyui tree drawer frame + the html page mode, easyui + html
More
- DodoFramework project master https://www.0yi0.com
- View online documentation https://doc.0yi0.com