zyhy_cosmic6/shkd-cosmic-debug/src/main/java/shkd/cosmic/debug/DebugApplication.java

49 lines
1.6 KiB
Java
Raw Normal View History

2024-07-03 06:59:29 +00:00
/**
* 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: 2024-07-03 10:20:57
*/
package shkd.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);
2024-07-09 08:24:17 +00:00
cosmic.setClusterNumber("zyhy-test");
cosmic.setTenantNumber("zyhy-test");
2024-07-03 06:59:29 +00:00
// cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=xxx");
cosmic.setConfigUrl("10.13.11.210:2181?user=zookeeper&password=Cosmic@2024");
// cosmic.setMcServerUrl("http://127.0.0.1:8090");
cosmic.setMcServerUrl("http://10.13.11.210:8090/mc");
2024-07-09 08:24:17 +00:00
cosmic.setWebResPath("D:\\zyhy\\static-file-service");
2024-07-03 06:59:29 +00:00
2024-07-09 08:24:17 +00:00
cosmic.set("tempfile.cachetype","disk");
cosmic.set("diskcache.path","D:\\diskcache");
cosmic.set("lightweightdeploy","true");
2024-07-03 06:59:29 +00:00
// cosmic.setFsServerUrl("127.0.0.1", 8100);
// cosmic.setImageServerUrl("127.0.0.1", 8100);
//自定义本地苍穹调试服务的端口
cosmic.setCosmicWepPort(8881);
// cosmic.setDubboConfig(false, true, true);
cosmic.start();
}
}