All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mars.start.StartMars Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
package com.mars.start;

import com.mars.jdbc.load.InitJdbc;
import com.mars.start.base.BaseStartMars;
import com.mars.start.startmap.StartLoadList;

/**
 * 启动Mars框架
 * @author yuye
 *
 */
public class StartMars {
    /**
     * 启动Mars框架
     * @param clazz
     */
    public static void start(Class clazz,String[] args){
        BaseStartMars.setStartList(StartLoadList.initStartList());

        if(args != null && args.length > 0 && args[0] != null){
            BaseStartMars.start(clazz,new InitJdbc(),args[0]);
        } else {
            BaseStartMars.start(clazz,new InitJdbc(),null);
        }
    }

    /**
     * 启动Mars框架
     * @param clazz
     */
    public static void start(Class clazz){
        start(clazz,null);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy