-
Pre-check
Apache Dubbo ComponentJava SDK (apache/dubbo) DetailsDUBBO VERSION: 3.1.4 spring:
cloud:
nacos:
discovery:
# 注册中心地址
server-addr: 10.XX.10.XX:8848
# 命名空间
namespace: 79883141-087a-4f4f-9a13-f2c42bb73e14
namespace2: b84945ff-30e0-4cf1-9e20-f73619b3d3f2
config:
# 注册中心地址
server-addr: ${spring.cloud.nacos.discovery.server-addr}
# 命名空间
namespace: ${spring.cloud.nacos.discovery.namespace}
# 配置格式
file-extension: yaml
dubbo:
application:
logger: slf4j
qos-enable: false
id: ${spring.application.name}
name: ${spring.application.name}
register-mode: instance
service-discovery:
migration: FORCE_APPLICATION
registry:
- address: nacos://${spring.cloud.nacos.discovery.server-addr}
group: DUBBO_GROUP
parameters:
namespace: ${spring.cloud.nacos.discovery.namespace}
- address: nacos://${spring.cloud.nacos.discovery.server-addr}
group: DUBBO_GROUP
parameters:
namespace: ${spring.cloud.nacos.discovery.namespace2}
protocol:
name: dubbo
port: -1
threadpool: cached
dispatcher: message
serialization: hessian2
provider:
timeout: 30000
retries: 0
group: DUBBO_GROUP
consumer:
check: false
group: DUBBO_GROUP
请问如何可以同时注册到一个nacos下两个不同的namespace下? 我的配置文件是否有问题? 我启动后无法注册到两个namespace下, 请求帮助, 谢谢 Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Answered by
chickenlj
Dec 9, 2024
Replies: 1 comment 2 replies
-
建议升级到最新的 3.3.2 版本,我记得这个问题在社区已经解决了,和 3.1.4 版本是完全兼容的 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AlbumenJ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
建议升级到最新的 3.3.2 版本,我记得这个问题在社区已经解决了,和 3.1.4 版本是完全兼容的