Browse Source

1.配置修改

master
zhenghaoyu 4 months ago
parent
commit
300d59a4b9
  1. 2
      blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java
  2. 3
      blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java

2
blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java

@ -114,7 +114,7 @@ public interface LauncherConstant {
/**
* elk prod 地址
*/
String ELK_PROD_ADDR = "172.30.0.72:9000";
String ELK_PROD_ADDR = "172.26.199.145:9002";
/**
* elk test 地址

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

@ -18,7 +18,6 @@ package org.springblade.common.launch;
import org.springblade.common.constant.LauncherConstant;
import org.springblade.core.auto.service.AutoService;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.launch.service.LauncherService;
import org.springblade.core.launch.utils.PropsUtil;
import org.springframework.boot.builder.SpringApplicationBuilder;
@ -41,7 +40,7 @@ public class LauncherServiceImpl implements LauncherService {
PropsUtil.setProperty(props, "spring.cloud.nacos.config.server-addr", LauncherConstant.nacosAddr(profile));
// 开启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.nacos.discovery.username","nacos");

Loading…
Cancel
Save