环境配置
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.6.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2021.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>aliyun-spring-boot-dependencies</artifactId>
<version>1.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Nacos:2.0.2
Dubbo:2.7.8
Dubbo Admin:0.3.0
应用配置
bootstrap.yml
spring:
application:
name: xxx
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
namespace: 645f0af0-167d-4f26-9c52-ac317dfba41a
config:
server-addr: 127.0.0.1:8848
namespace: 645f0af0-167d-4f26-9c52-ac317dfba41a
file-extension: yaml
dubbo:
application:
id: xxx
name: xxx
protocol:
id: dubbo
port: -1
registry:
id: nacos
address: nacos://127.0.0.1:8848?namespace=645f0af0-167d-4f26-9c52-ac317dfba41a
check: false
scan:
base-packages: xxx
consumer:
check: false
Dubbo Admin配置
测试结果
参考文章
- Dubbo Admin配置说明
Dubbo Admin 2.7 安装手册
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)