|
|
@ -43,27 +43,25 @@ public class LauncherServiceImpl implements LauncherService { |
|
|
|
// 开启elk日志
|
|
|
|
// 开启elk日志
|
|
|
|
// PropsUtil.setProperty(props, "blade.log.elk.destination", LauncherConstant.elkAddr(profile));
|
|
|
|
// PropsUtil.setProperty(props, "blade.log.elk.destination", LauncherConstant.elkAddr(profile));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile)); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile)); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.username","nacos"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.username","nacos"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.password","Nacos123123"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.password","Nacos123123"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.config.username","nacos"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.config.username","nacos"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.config.password","Nacos123123"); |
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.config.password","Nacos123123"); |
|
|
|
// dubbo注册
|
|
|
|
// dubbo注册
|
|
|
|
PropsUtil.setProperty(props, "dubbo.application.name", appName); |
|
|
|
// PropsUtil.setProperty(props, "dubbo.application.name", appName);
|
|
|
|
PropsUtil.setProperty(props, "dubbo.application.qos.enable", "false"); |
|
|
|
// PropsUtil.setProperty(props, "dubbo.application.qos.enable", "false");
|
|
|
|
PropsUtil.setProperty(props, "dubbo.protocol.name", "dubbo"); |
|
|
|
// PropsUtil.setProperty(props, "dubbo.protocol.name", "dubbo");
|
|
|
|
PropsUtil.setProperty(props, "dubbo.registry.address", "nacos://" + LauncherConstant.nacosAddr(profile)); |
|
|
|
// PropsUtil.setProperty(props, "dubbo.registry.address", "nacos://" + LauncherConstant.nacosAddr(profile));
|
|
|
|
PropsUtil.setProperty(props, "dubbo.version", AppConstant.APPLICATION_VERSION); |
|
|
|
// PropsUtil.setProperty(props, "dubbo.version", AppConstant.APPLICATION_VERSION);
|
|
|
|
PropsUtil.setProperty(props, "dubbo.scan.base-packages", AppConstant.BASE_PACKAGES); |
|
|
|
// PropsUtil.setProperty(props, "dubbo.scan.base-packages", AppConstant.BASE_PACKAGES);
|
|
|
|
|
|
|
|
|
|
|
|
// seata注册地址
|
|
|
|
// // seata注册地址
|
|
|
|
PropsUtil.setProperty(props, "seata.service.grouplist.default", LauncherConstant.seataAddr(profile)); |
|
|
|
// PropsUtil.setProperty(props, "seata.service.grouplist.default", LauncherConstant.seataAddr(profile));
|
|
|
|
// seata注册group格式
|
|
|
|
// // seata注册group格式
|
|
|
|
PropsUtil.setProperty(props, "seata.tx-service-group", LauncherConstant.seataServiceGroup(appName)); |
|
|
|
// PropsUtil.setProperty(props, "seata.tx-service-group", LauncherConstant.seataServiceGroup(appName));
|
|
|
|
// seata配置服务group
|
|
|
|
// // seata配置服务group
|
|
|
|
PropsUtil.setProperty(props, "seata.service.vgroup-mapping.".concat(LauncherConstant.seataServiceGroup(appName)), LauncherConstant.DEFAULT_MODE); |
|
|
|
// PropsUtil.setProperty(props, "seata.service.vgroup-mapping.".concat(LauncherConstant.seataServiceGroup(appName)), LauncherConstant.DEFAULT_MODE);
|
|
|
|
// seata注册模式配置
|
|
|
|
// seata注册模式配置
|
|
|
|
// PropsUtil.setProperty(props, "seata.registry.type", LauncherConstant.NACOS_MODE);
|
|
|
|
// PropsUtil.setProperty(props, "seata.registry.type", LauncherConstant.NACOS_MODE);
|
|
|
|
// PropsUtil.setProperty(props, "seata.registry.nacos.server-addr", LauncherConstant.nacosAddr(profile));
|
|
|
|
// PropsUtil.setProperty(props, "seata.registry.nacos.server-addr", LauncherConstant.nacosAddr(profile));
|
|
|
|