DebugApplication.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
  3. * If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
  4. * Website: https://developer.kingdee.com/developer?productLineId=29
  5. * Author: liebin.zheng
  6. * Generate Date: 2024-06-20 15:37:53
  7. */
  8. package q1k2.cosmic.debug;
  9. import kd.cosmic.debug.tools.CosmicLauncher;
  10. /**
  11. * 启动本地应用程序(微服务节点)
  12. */
  13. public class DebugApplication {
  14. public static void main(String[] args) {
  15. // Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader()));
  16. CosmicLauncher cosmic = new CosmicLauncher(false);
  17. cosmic.setClusterNumber("cosmic");
  18. cosmic.setTenantNumber("ierp");
  19. // cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=xxx");
  20. cosmic.setConfigUrl("192.168.1.250:2181?user=zookeeper&password=zookeeper");
  21. //cosmic.setConfigUrl("47.92.104.23:7181?user=zookeeper&password=zookeeper");
  22. cosmic.setMcServerUrl("http://192.168.1.250:8090/");
  23. //cosmic.setMcServerUrl("http://47.92.104.23:7090/");
  24. //cosmic.setFsServerUrl("192.168.1.250", 8100);
  25. //cosmic.setImageServerUrl("192.168.1.250", 8100);
  26. //cosmic.setStartWithQing(false);
  27. //cosmic.setDubboHostConfig("192.168.1.250", 28888, 30880);
  28. //cosmic.setEnableLightWeightDeploy(true);
  29. //cosmic.setDubboConfig(false, true, true);
  30. cosmic.setMqConsumerRegister(true, CosmicLauncher.localHostName);
  31. cosmic.setWebResPath("C:/cangqiong/qy/static-file-service");
  32. // cosmic.setFsServerUrl("127.0.0.1", 8100);
  33. // cosmic.setImageServerUrl("127.0.0.1", 8100);
  34. //自定义本地苍穹调试服务的端口
  35. cosmic.setSqlOut(true,true);
  36. cosmic.setCosmicWepPort(8881);
  37. // cosmic.setDubboConfig(false, true, true);
  38. cosmic.start();
  39. }
  40. }