From 281ec68002e665ab8abbed019d23c8ce4f1bd449 Mon Sep 17 00:00:00 2001 From: zhangzhiguo <421587375@qq.com> Date: Wed, 13 Aug 2025 09:49:32 +0800 Subject: [PATCH] =?UTF-8?q?Uat=E7=8E=AF=E5=A2=83=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cosmic/debug/UatDebugApplication.java | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 code/zcgj-cosmic-debug/src/main/java/zcgj/cosmic/debug/UatDebugApplication.java diff --git a/code/zcgj-cosmic-debug/src/main/java/zcgj/cosmic/debug/UatDebugApplication.java b/code/zcgj-cosmic-debug/src/main/java/zcgj/cosmic/debug/UatDebugApplication.java new file mode 100644 index 0000000..c20b7c8 --- /dev/null +++ b/code/zcgj-cosmic-debug/src/main/java/zcgj/cosmic/debug/UatDebugApplication.java @@ -0,0 +1,100 @@ +/** + * 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-11-22 11:26:47 + */ +package zcgj.cosmic.debug; + +import kd.cosmic.debug.tools.CosmicLauncher; + +/** + * 启动本地应用程序(微服务节点) + */ +public class UatDebugApplication { + + + + public static void main(String[] args) { + +// Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader())); + + CosmicLauncher cosmic = new CosmicLauncher(false); + //开发工作流时开启 + // 关闭轻量环境,启用 redis、rabbitmq + cosmic.setEnableLightWeightDeploy(false); + //debbugTopic 需要设置成每人都不同的 + String debbugTopic = "zzg"; + // 注册为消息队列消费者 + cosmic.setMqConsumerRegister(true, debbugTopic); + + cosmic.setClusterNumber("ierp");//xxx为mc中的集群编码 + cosmic.setTenantNumber("sinoma");//xxx为mc中租户id + //cosmic.setClusterNumber("cosmic"); + //cosmic.setTenantNumber("ierp"); + + //本地环境 + //cosmic.setConfigUrl("192.168.10.210?user=zookeeper&password=123456abc"); + //cosmic.setMcServerUrl("http://192.168.10.210:8090/"); + + //UAT环境 + cosmic.setConfigUrl("172.31.195.243:2181?user=zookeeper&password=Cosmic@6654"); + cosmic.setMcServerUrl("http://111.51.168.122:8090/"); + + +// cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=xxx"); + //cosmic.set("Schedule.zk.server.ip_port","192.168.10.210:2181?user=zookeeper&password=123456abc"); + //cosmic.setConfigUrl("26.60.218.15?user=zookeeper&password=123456abc"); + +// cosmic.setMcServerUrl("http://127.0.0.1:8090"); + // cosmic.setMcServerUrl("http://26.60.218.15:8090/"); + //http://111.51.168.122:8090/mc + +// cosmic.setFsServerUrl("127.0.0.1", 8100); +// cosmic.setImageServerUrl("127.0.0.1", 8100); + + + + //自定义本地苍穹调试服务的端口 + cosmic.setCosmicWebPort(8881); +// cosmic.setDubboConfig(false, true, true); + cosmic.start(); + //redis 47.101.159.154 + + // debbugTopic 需要设置成每人都不同的 + // String debbugTopic = "zzg"; + // 注册为消息队列消费者 + //cosmic.setMqConsumerRegister(true, debbugTopic); + + +// rabbitmq配置 + /* { + //MQ地址 + String mqHost = "139.224.101.245"; + String mqPort = "5672"; // 默认5672 + //MQ用戶名 + String mqUser = "admin"; + //MQ密碼 + String mqPwd = "admin"; + // MQ Ierp vhost + String mqVhost = "ierp"; + StringBuilder builder = new StringBuilder(); + builder.append("type=rabbitmq").append(System.getProperty("line.separator")) + .append("host=").append(mqHost).append(System.getProperty("line.separator")) + .append("port=").append(mqPort).append(System.getProperty("line.separator")) + .append("user=").append(mqUser).append(System.getProperty("line.separator")) + .append("password=").append(mqPwd).append(System.getProperty("line.separator")) + .append("vhost=").append(mqVhost); + cosmic.set("mq.server", builder.toString()); + } + + // redis + { + String redisUrl = "47.101.159.154:6379"; + cosmic.set("redis.serversForCache", redisUrl); + cosmic.set("redis.serversForSession", redisUrl); + cosmic.set("algo.storage.redis.url", redisUrl); + }*/ + } +} \ No newline at end of file