Dubbo Admin —— Spring Cloud Alibaba 2021.1 + Nacos + Dubbo Admin参考配置

Posted Starzkg

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Dubbo Admin —— Spring Cloud Alibaba 2021.1 + Nacos + Dubbo Admin参考配置相关的知识,希望对你有一定的参考价值。

环境配置

    <dependencyManagement>
        <dependencies>
            <!--Spring Boot-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>2.6.2</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!--Spring Cloud-->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>2021.0.0</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!--Spring Cloud Alibaba-->
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>2021.1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!--Alibaba Aliyun-->
            <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 —— Spring Cloud Alibaba 2021.1 + Nacos + Dubbo Admin参考配置的主要内容,如果未能解决你的问题,请参考以下文章

启动 dubbo-admin 必须要启动zookeeper吗

构建 Zookeeper + Dubbo + Spring Boot 的分布式调用项目

dubbo + zookeeper + spring boot搭建过程&填坑记录

最新版Dubbo-admin编译

dubbo-admin-2.5.3.war 启动不了

Spring Boot 整合 Dubbo和Zookeeper