DebugApplication.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: 2025-05-26 16:28:10
  7. */
  8. package nckd.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=zookeeper&password=12345678");
  20. // cosmic.setConfigUrl("127.0.0.1:2183");
  21. // cosmic.setMcServerUrl("http://127.0.0.1:8090");
  22. cosmic.setMcServerUrl("http://127.0.0.1:8093/");
  23. // cosmic.setFsServerUrl("127.0.0.1", 8100);
  24. // cosmic.setImageServerUrl("127.0.0.1", 8100);
  25. //自定义本地苍穹调试服务的端口
  26. cosmic.setCosmicWebPort(8888);
  27. // cosmic.setDubboConfig(false, true, true);
  28. cosmic.start();
  29. }
  30. }