/**
 * 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-06-20 15:50:17
 */
package kd.bos.debug.mservice;


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


    public static void main(String[] args) {

//            Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader()));

       // kd.bos.debug.mservice.CosmicLauncher cosmic = new kd.bos.debug.mservice.CosmicLauncher(true);
        CosmicLauncher cosmic = new CosmicLauncher();
        cosmic.setClusterNumber("ierp");
        cosmic.setTenantNumber("ierp");
        cosmic.setEnableLightWeightDeploy(true);
//        cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=xxx");
        cosmic.setConfigUrl("10.201.51.205:2181/?user=cosmic&password=Cosmic@2023");

//        cosmic.setMcServerUrl("http://127.0.0.1:8090");
        cosmic.setMcServerUrl("http://10.201.51.205:8090");
        cosmic.setSqlOut(true, true);
        cosmic.setWebResPath("D:\\qy\\shenzhicheng-server\\var\\appstatic\\static-files\\cosmic\\webapp");
        cosmic.setImageServerUrl("10.201.51.205", 8022);
        cosmic.setFsServerUrl("10.201.51.205", 8022);
        cosmic.setMqHostConfig("10.201.51.205","5672","cosmic","Cosmic@2023","ierp");
        cosmic.setMqConsumerRegister(true,"cosmicDev");
        cosmic.setRedisConfig("redis:10.201.51.205:6380/Cosmic@2020");
        //自定义本地苍穹调试服务的端口
        cosmic.setCosmicWebPort(8881);
        //http://127.0.0.1:8881/ierp/login.html
//        cosmic.setDubboConfig(false, true, true);
        cosmic.start();


    }

}