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

配置和服务发现使用不同的namespace #12478

Open
zhaomingcheng01 opened this issue Aug 9, 2024 · 6 comments
Open

配置和服务发现使用不同的namespace #12478

zhaomingcheng01 opened this issue Aug 9, 2024 · 6 comments
Assignees
Labels
area/Spring Boot Related to Spring Boot kind/research

Comments

@zhaomingcheng01
Copy link

image
image
image
有相关的示例代码么,将配置中心和注册中心的namespace分开来的

@985492783
Copy link
Contributor

create多个configService或者namingService即可

@zhaomingcheng01
Copy link
Author

有相关的示例代码么

@zhaomingcheng01
Copy link
Author

为啥不能提供一个配置,指定是否使用通一个sdk

@zhaomingcheng01
Copy link
Author

目前发现两个starter公用一个sdk,导致nacos-discovery的相关配置不生效

@KomachiSion
Copy link
Collaborator

不可能共用的, 配置中心和注册中心的api都不一样,各自的配置应该放在对应的配置下,
比如配置的要放在spring.cloud.nacos.config.namespace, 注册中心在spring.cloud.nacos.discovery.namespace
如果没有配置才会用父配置spring.cloud.nacos.namespace

这个问题建议转到spring cloud alibaba社区询问一下。

@KomachiSion KomachiSion added the status/invalid This doesn't seem right label Aug 12, 2024
@zhaomingcheng01
Copy link
Author

验证了一下nacos-cloud是没有这个问题的,这个nacos-spring-boot-starter有这个问题

@KomachiSion KomachiSion added kind/research area/Spring Boot Related to Spring Boot and removed status/invalid This doesn't seem right labels Aug 15, 2024
@hujun-w-2 hujun-w-2 self-assigned this Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Spring Boot Related to Spring Boot kind/research
Projects
None yet
Development

No branches or pull requests

4 participants