Browse Source

1.增加本地测试的nacos账号和密码

test
pref_mail@163.com 2 years ago
parent
commit
bbaf586ec1
  1. 5
      blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java

5
blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java

@ -42,6 +42,11 @@ public class LauncherServiceImpl implements LauncherService {
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.datasource.dynamic.enabled", "true"); // PropsUtil.setProperty(props, "spring.datasource.dynamic.enabled", "true");
PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.username","nacos");
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.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");

Loading…
Cancel
Save