pb之json對象生成、表對象生成、webroutes.xml生成

1,表映射json對象生成:

package com.cn.pb;
import com.cn.pb.process.app.PrintPbParentApp;
import com.cn.pb.util.PrintPbUtil;
/**
 * Created by lizhihao on 2019/4/11 17:10
 */
public class PrintTableJsonApp extends PrintPbParentApp {
    //打印配置的表對象json信息
    public static void printTableObjectJson(){
        for (String name : PrintPbUtil.getPropertiesTableNames()) {
            printJsonObject(name);
            MSGID++;
        }
    }
    public static void main(String[] args) {
        printTableObjectJson();
    }
}

2,表映射pb對象生成:

package com.cn.pb;
import com.cn.pb.process.app.PrintPbParentApp;
import com.cn.pb.util.PrintPbUtil;
/**
 * Created by lizhihao on 2019/4/11 16:43
 */
public class PrintTableObjectApp extends PrintPbParentApp {

    //打印配置的表對象字段信息
    public static void printTableObjectPb(){
        for (String name : PrintPbUtil.getPropertiesTableNames()) {
            printOneTableToPbInfo(name);
            MSGID++;
        }
    }
    public static void main(String[] args) {
        printTableObjectPb();
    }
}

3,自動生成webroutes.xml文件:

package com.cn.pb;
import com.cn.pb.process.app.PrintPbParentApp;
/**
 * Created by lizhihao on 2019/4/14 14:20
 * 打印webroutes.xml配置信息,默認登錄方式爲normal
 */
public class PrintWebRoutesApp extends PrintPbParentApp {
    public static void main(String[] args) {
        MSGID = 86;
        printWebRoutesDetail();
    }
}

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章