/**
 * This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin. 
 * If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
 * Website: https://developer.kingdee.com/developer?productLineId=29
 * Author: liebin.zheng
 * Generate Date: 2025-04-14 11:39:48
 */
package nckd.cosmic.debug;

import kd.cosmic.debug.tools.CosmicLauncher;

/**
 * 启动本地应用程序(微服务节点)
 */
public class DebugApplication {
	
	

    public static void main(String[] args) {
    	
//    	Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader()));
    	
        CosmicLauncher cosmic = new CosmicLauncher(false);

        cosmic.setClusterNumber("jmkd-dev");
        cosmic.setTenantNumber("jmkd-dev");

        cosmic.setConfigUrl("172.16.51.127:2181?user=zookeeper&password=d@f*g:SGVsbG8==ks1LiwKd/S7nGdJNoDTBJDXUCSlnkc/6ELhd8lK10IEYa2RwYXNzd29yZA==");
        cosmic.setMcServerUrl("http://172.16.51.127:8090/");

        cosmic.setFsServerUrl("172.16.51.127", 8100);
        cosmic.setImageServerUrl("172.16.51.127", 8100);
        //自定义本地苍穹调试服务的端口
        cosmic.setCosmicWebPort(8080);
//        cosmic.setDubboConfig(false, true, true);

        cosmic.setStartWithQing(true);


        cosmic.start();
    }
}