You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/06/24 16:02:27 UTC

[dubbo] branch 3.0.1-release updated: compatible with api way to add service into bootstrap

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.0.1-release
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0.1-release by this push:
     new 7985d47  compatible with api way to add service into bootstrap
7985d47 is described below

commit 7985d476ca956a5e80d09acbd0e8c91304af21ed
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Fri Jun 25 00:01:28 2021 +0800

    compatible with api way to add service into bootstrap
---
 .../src/main/java/org/apache/dubbo/config/ServiceConfig.java             | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
index 8d5893b..270d91f 100644
--- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
+++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
@@ -210,6 +210,7 @@ public class ServiceConfig<T> extends ServiceConfigBase<T> {
     public synchronized void export() {
         if (this.shouldExport() && !this.exported) {
             this.init();
+            this.bootstrap.service(this);
 
             // check bootstrap state
             if (!bootstrap.isInitialized()) {