pb file generated documentation

The project aims to quickly generate pb interface file, help the development of the liberation of the back-end duplication of work, focus on core business development.

This project is mainly two profiles: jdbc and pb, the former is mainly used to configure the database connection, specify the database name of the library, pb jdbc generated depends on the document table into the parameter field is a field interface
Mapping, it is noted that: the field of database tables are best described with comments to facilitate the interface when automatically generating the reference will be a corresponding explanatory notes.

Code Description:
Under some of the main storage package util sharing method, some of the rules to generate the reference method RoleUtil
jdbcConnectionUtil: Database Connection
CommonUtil: Other common methods
PrintPbParentApp: other classes parent class, specify the interface method name prefix and there are other methods and attributes MSGID
PrintPbUtil: public file generation method when pb
PropertiesUtil: reading the configuration file properties

Instructions:
The project has been completed to generate deletions pb change search operation generates entrance: XXXApp.Java file under com.cn.pb packet, wherein the single CRUD generate a corresponding pb
Additions and deletions to change search files, print the entire document generation pb main method of an executable PrintPbAllApp.Java to see print in the console.

------------------------------------------------------
Increase pb target entity may generate a separate table object PrintTableObjectApp.Java
Increasing a separate table may be generated object json objects PrintTableJsonApp.Java
Increase the self-generated automatically configure the interface file name defined pb complete, the default parameters: User, and the parameters msg PrintInterfacePbApp.Java retCode
Pb only do additional custom interface PrintPbCustomApp.Java

The increase in the self-defined interface name configuration information generated automatically webRoutes
The increase in the corresponding folder Automatic Generation dao, default annotation starts automatically (for general CRUD) OutWriterTableDaoApp.java, generating a file in the file file OutWriterTableDaoApp.java
Increase the interface automatically generates the file name and the service name Flow, OutWriterTableFlowApp.java, the resulting file in the folder flowFile

Guess you like

Origin blog.csdn.net/qq_35255384/article/details/95313220