zhongrijian
2024-06-01 f61e96c11098ad78cafb78d16f3f36cb8cefcf77
blade-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java
@@ -37,13 +37,16 @@
      Properties props = System.getProperties();
      // 通用注册
      PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.enabled", "false");
      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.username", LauncherConstant.NACOS_USERNAME);
      PropsUtil.setProperty(props, "spring.cloud.nacos.password", LauncherConstant.NACOS_PASSWORD);
//      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.username", LauncherConstant.NACOS_USERNAME);
//      PropsUtil.setProperty(props, "spring.cloud.nacos.password", LauncherConstant.NACOS_PASSWORD);
//      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");
      // 开启鉴权
//      PropsUtil.setProperty(props, "blade.secure.enabled", "true");
      // 开启elk日志
      // PropsUtil.setProperty(props, "blade.log.elk.destination", LauncherConstant.elkAddr(profile));