Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the specified namespace does not work when nacos configures the registry

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the relevant knowledge of "nacos configuration registry when specifying namespace does not work" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, hope that this "nacos configuration registry when specifying namespace does not work how to do" article can help you solve the problem.

Specifying a namespace does not work when nacos configures the registry because the namespace does not apply to nacos 0.8

The Nacos client service registration is not divided into namespaces, and the default registration is under the public namespace.

The initial reason why he was designed by Ali is that namespace is mainly for business isolation, multiple businesses or departments can use a Nacos, but the data are shielded from each other.

Therefore, it is not to separate the service from the development environment, and there is no official solution to this requirement.

Update:

In 2020, it has been updated, and officials have made it clear that they can. To be tested

Https://github.com/alibaba/spring-cloud-alibaba/wiki/Nacos-discovery

The use of nacos namespaces Why do we use namespaces?

Because in the process of using, we usually use the dev environment in the development process, but after the development is completed, we need to run in the test environment, when we release, we need to run the project in the prod environment, we need to use nacos to create dev, test, prod environment.

Let's see how we can use nacos's namespace.

Create a namespace

Final read

Modify the configuration file to add a namespace

This is the end of the article on "what if the specified namespace doesn't work when nacos configures the registry". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report