Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incubator-dubbo-spring-boot-project cannot distinguish services based on namespace #1256

Closed
LoveMyPyj opened this issue May 22, 2019 · 6 comments
Labels
area/Dubbo Related to dubbo kind/bug Category issues or prs related to bug.

Comments

@LoveMyPyj
Copy link

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

在incubator-dubbo-spring-boot-project项目:https:/apache/incubator-dubbo-spring-boot-project中,使用nacos为注册中心和配置中心,nacos可以根据namespace来做配置区分,但是无法根据namespace来做服务区分

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

@nacos-bot nacos-bot added the area/Dubbo Related to dubbo label May 22, 2019
@nacos-bot
Copy link
Collaborator

Hi @LoveMyPyj, we detect non-English characters in the issue. This comment is an auto translation from @nacos-bot to help other users to understand this issue.
We encourage you to describe your issue in English which is more friendly to other users.

Incubator-dubbo-spring-boot-project cannot distinguish services based on namespace

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

In the incubator-dubbo-spring-boot-project project: https:/apache/incubator-dubbo-spring-boot-project, using nacos as the registration center and configuration center, nacos can be configured according to the namespace. , but can't make service distinction based on namespace

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

@nacos-bot nacos-bot changed the title incubator-dubbo-spring-boot-project无法根据namespace区分服务 Incubator-dubbo-spring-boot-project cannot distinguish services based on namespace May 22, 2019
@nacos-bot nacos-bot added the kind/bug Category issues or prs related to bug. label May 22, 2019
@LoveMyPyj
Copy link
Author

<spring-boot.version>2.1.3.RELEASE</spring-boot.version>
<dubbo.version>2.7.1</dubbo.version>
<nacos.version>1.0.0-RC3</nacos.version>

@LoveMyPyj
Copy link
Author

org.springframework.boot spring-boot-dependencies ${spring-boot.version} pom import
        <!-- Aapche Dubbo  -->
        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo-dependencies-bom</artifactId>
            <version>${dubbo.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo</artifactId>
            <version>${dubbo.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo-registry-nacos</artifactId>
            <version>${dubbo.version}</version>
        </dependency>

        <dependency>
            <groupId>com.alibaba.nacos</groupId>
            <artifactId>nacos-client</artifactId>
            <version>${nacos.version}</version>
        </dependency>
    </dependencies>
</dependencyManagement>

@LoveMyPyj
Copy link
Author

TIM图片20190522224152
TIM图片20190522224215
TIM图片20190522224229
TIM图片20190522224246

@nkorange
Copy link
Collaborator

Nacos是支持多命名空间的,当前的Nacos客户端版本也是没问题的。请到Incubator-dubbo-spring-boot-project工程下确认是否没有正确配置命名空间参数。

@rick-2023
Copy link

Nacos是支持多命名空间的,当前的Nacos客户端版本也是没问题的。请到Incubator-dubbo-spring-boot-project工程下确认是否没有正确配置命名空间参数。

请问dubbo-nacos的namespace该如何配置 Incubator-dubbo-spring-boot-project工程下 没有找到类似的demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Dubbo Related to dubbo kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

4 participants