|
|
|
|
@ -10,7 +10,6 @@ import java.util.Properties; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 启动参数拓展 |
|
|
|
|
* |
|
|
|
|
* @author smallchil |
|
|
|
|
*/ |
|
|
|
|
@AutoService(LauncherService.class) |
|
|
|
|
@ -22,10 +21,14 @@ public class LauncherServiceImpl implements LauncherService { |
|
|
|
|
// 通用注册
|
|
|
|
|
// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.server-addr", LauncherConstant.nacosAddr(profile));
|
|
|
|
|
// PropsUtil.setProperty(props, "spring.cloud.nacos.config.server-addr", LauncherConstant.nacosAddr(profile));
|
|
|
|
|
// 省畜牧现场
|
|
|
|
|
// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", "44debeab-5f49-41b6-a664-2f0a33825f8f");
|
|
|
|
|
// PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", "44debeab-5f49-41b6-a664-2f0a33825f8f");
|
|
|
|
|
// 测试服务器
|
|
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", "e9bcb975-a8b3-43d1-812f-8408ce571137"); |
|
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", "e9bcb975-a8b3-43d1-812f-8408ce571137"); |
|
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.username", "nacos"); |
|
|
|
|
PropsUtil.setProperty(props, "spring.cloud.nacos.password", "jiahe123!"); |
|
|
|
|
// PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile));
|
|
|
|
|
// PropsUtil.setProperty(props, "spring.zipkin.base-url", LauncherConstant.zipkinAddr(profile));
|
|
|
|
|
PropsUtil.setProperty(props, "spring.datasource.dynamic.enabled", "false"); |
|
|
|
|
|