mirror of
https://github.com/wahyd4/Martian.git
synced 2026-08-09 05:16:21 +10:00
27 lines
663 B
Java
27 lines
663 B
Java
package com.mars.start;
|
|
|
|
import com.mars.core.base.config.MarsConfig;
|
|
import com.mars.core.util.MarsConfiguration;
|
|
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, MarsConfig marsConfig){
|
|
BaseStartMars.setStartList(StartLoadList.initStartList());
|
|
if(marsConfig != null){
|
|
MarsConfiguration.loadConfig(marsConfig);
|
|
}
|
|
BaseStartMars.start(clazz,new InitJdbc());
|
|
}
|
|
}
|