Skip to content
Spring Boot Project for Apache Dubbo (Incubating)
Branch: master
Clone or download
Latest commit b2200d6 Mar 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper work-in-process Jan 18, 2018
dubbo-spring-boot-actuator rename endpoins -> endpoints (#461) Mar 8, 2019
dubbo-spring-boot-autoconfigure Move png files to subfolder (#448) Feb 18, 2019
dubbo-spring-boot-compatible 1.0.0 (#429) (#430) Feb 1, 2019
dubbo-spring-boot-distribution 2.7.0 release (#434) Feb 1, 2019
dubbo-spring-boot-parent 1.0.0 (#429) (#430) Feb 1, 2019
dubbo-spring-boot-samples 1.0.0 (#435) Feb 1, 2019
dubbo-spring-boot-starter 1.0.0 (#429) (#430) Feb 1, 2019
.gitignore 1.0.0 (#421) Jan 29, 2019
.travis.yml Add Java11 support #383 (#393) Jan 22, 2019
DISCLAIMER 0.2.1 release (#402) Jan 21, 2019
LICENSE Initial commit Jan 18, 2018
NOTICE 1.0.0 (#429) (#430) Feb 1, 2019 1.0.0 (#435) Feb 1, 2019
mvnw work-in-process Jan 18, 2018
mvnw.cmd work-in-process Jan 18, 2018
pom.xml Enable flatten plugin by default (#441) (#443) Feb 18, 2019

Apache Dubbo Spring Boot Project

Build Status codecov license

Apache Dubbo(incubating) Spring Boot Project makes it easy to create Spring Boot application using Dubbo as RPC Framework. What's more, it also provides

Apache Dubbo (incubating) |ˈdʌbəʊ| is a high-performance, light weight, java based RPC framework. Dubbo offers three key functionalities, which include interface based remote call, fault tolerance & load balancing, and automatic service registration & discovery.


Released version

You can introduce the latest dubbo-spring-boot-starter to your project by adding the following dependency to your pom.xml

        <!-- Spring Boot -->

        <!-- Apache Dubbo  -->


    <!-- Dubbo Spring Boot Starter -->

If your project failed to resolve the dependency, try to add the following repository:

        <name>Apache Development Snapshot Repository</name>

Legacy Versions

If you still use the legacy Dubbo whose version is less than 2.7.0, please use the following Spring Boot starters:

Dubbo Spring Boot Dubbo Spring Boot
0.2.1.RELEASE 2.6.5+ 2.x
0.1.2.RELEASE 2.6.5+ 1.x

Build from Source

If you'd like to attempt to experience latest features, you also can build from source as follow:

  1. Maven install current project in your local repository.

Maven install = mvn install

Getting Started

If you don't know about Dubbo, please take a few minutes to learn After that you could dive deep into dubbo user guide.

Usually, There are two usage scenarios for Dubbo applications, one is Dubbo service(s) provider, another is Dubbo service(s) consumer, thus let's get a quick start on them.

First of all, we suppose an interface as Dubbo RPC API that a service provider exports and a service client consumes:

public interface DemoService {

    String sayHello(String name);


Dubbo service(s) provider

  1. Service Provider implements DemoService

    @Service(version = "1.0.0")
    public class DefaultDemoService implements DemoService {
         * The default value of ${} is ${}
        private String serviceName;
        public String sayHello(String name) {
            return String.format("[%s] : Hello, %s", serviceName, name);
  2. Provides a bootstrap class

    public class DubboProviderDemo {
        public static void main(String[] args) {
  3. Configures the

    # Spring boot application
    # Base packages to scan Dubbo Component: @org.apache.dubbo.config.annotation.Service
    # Dubbo Application
    ## The default value of is ${}
    # Dubbo Protocol
    ## Dubbo Registry

Dubbo service(s) consumer

  1. Service consumer also provides a bootstrap class to reference DemoService

    public class DubboAutoConfigurationConsumerBootstrap {
        private final Logger logger = LoggerFactory.getLogger(getClass());
        @Reference(version = "1.0.0", url = "dubbo://")
        private DemoService demoService;
        public static void main(String[] args) {
        public ApplicationRunner runner() {
            return args -> {
  2. configures application.yml

        name: dubbo-auto-configure-consumer-sample

If DubboProviderDemo works well, please mark sure DubboProviderDemo is started.

More details, please refer to Samples.

Getting help

Having trouble with Dubbo Spring Boot? We’d like to help!

Building from Source

If you want to try out thr latest features of Dubbo Spring Boot, it can be easily built with the maven wrapper. Your JDK is 1.8 or above.

$ ./mvnw clean install


There are some modules in Apache Dubbo Spring Boot Project, let's take a look at below overview:


The main usage of dubbo-spring-boot-parent is providing dependencies management for other modules.


dubbo-spring-boot-autoconfigure uses Spring Boot's @EnableAutoConfiguration which helps core Dubbo's components to be auto-configured by DubboAutoConfiguration. It reduces code, eliminates XML configuration.


dubbo-spring-boot-actuator provides production-ready features (e.g., health checks, endpoints, and externalized configuration).


dubbo-spring-boot-starter is a standard Spring Boot Starter, which contains dubbo-spring-boot-autoconfigure and dubbo-spring-boot-actuator. It will be imported into your application directly.


The samples project of Dubbo Spring Boot that includes:

You can’t perform that action at this time.