DebugApplication.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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-11-21 10:24:13
  7. */
  8. package nckd.cosmic.debug;
  9. /**
  10. * 启动本地应用程序(微服务节点)
  11. */
  12. public class DebugApplication {
  13. public static void main(String[] args) {
  14. // Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader()));
  15. Launcher cosmic = new Launcher(false);
  16. // cosmic.setClusterNumber("cosmic");
  17. // cosmic.setTenantNumber("ierp");
  18. cosmic.setClusterNumber("cl-sit");
  19. cosmic.setTenantNumber("cl-sit");
  20. // cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=******");
  21. // cosmic.setConfigUrl("127.0.0.1:2182/?user=zookeeper&password=zt111222");
  22. cosmic.setConfigUrl("10.0.55.10:2181?user=zookeeper&password=d@f*g:SGVsbG8==AkVeSR0FdQBE0tuAn88ekDn9cKsWEsW7FAoI/PJCuMNHa2RwYXNzd29yZA==");
  23. // cosmic.setMcServerUrl("http://127.0.0.1:8091");
  24. cosmic.setMcServerUrl("http://10.0.55.10:8090");
  25. cosmic.setWebResPath("C:/Users/any50/cosmic/home/static-file-service");
  26. // cosmic.setFsServerUrl("127.0.0.1", 8100);
  27. // cosmic.setImageServerUrl("127.0.0.1", 8100);
  28. //自定义本地苍穹调试服务的端口
  29. cosmic.setCosmicWepPort(8881);
  30. cosmic.start();
  31. }
  32. }