Browse Source

1.增加nacos授权

dev-warehouse
pref_mail@163.com 2 years ago
parent
commit
4664e055d7
  1. 4
      blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java
  2. 7
      blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java
  3. 1
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataDriverArteryMapper.java

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

@ -56,7 +56,7 @@ public interface LauncherConstant {
/**
* nacos test 地址
*/
String NACOS_TEST_ADDR = "192.168.2.110:8848";
String NACOS_TEST_ADDR = "8.137.14.82:8848";
/**
@ -88,7 +88,7 @@ public interface LauncherConstant {
/**
* seata test 地址
*/
String SEATA_TEST_ADDR = "192.168.2.110:8091";
String SEATA_TEST_ADDR = "8.137.14.82:8091";
/**

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

@ -39,6 +39,13 @@ 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.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");
PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile));
// dubbo注册

1
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataDriverArteryMapper.java

@ -46,7 +46,6 @@ public interface BasicdataDriverArteryMapper extends BaseMapper<BasicdataDriverA
/**
* 获取导出数据
*
* @param queryWrapper
* @return
*/

Loading…
Cancel
Save