Uat环境启动

This commit is contained in:
zhangzhiguo 2025-08-13 09:49:32 +08:00
parent 3ee371b2ed
commit 281ec68002
1 changed files with 100 additions and 0 deletions

View File

@ -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);
//开发工作流时开启
// 关闭轻量环境启用 redisrabbitmq
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);
}*/
}
}