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

Duplicate RegistryConfig found, there already has one default RegistryConfig or more than two RegistryConfigs have the same id #736

Closed
iwhalecloud-platform opened this issue Jul 16, 2020 · 0 comments
Assignees
Milestone

Comments

@iwhalecloud-platform
Copy link

属性配置:

dubbo.registries.registryB.address=zookeeper://127.0.0.1:2181
dubbo.registries.registryB.group=dubbo

dubbo.registries.registryA.address=zookeeper://127.0.0.1:2181
dubbo.registries.registryA.group=dubboA

如果使用dubbo.scan-base-packages,就会提示警告Duplicate RegistryConfig found, there already has one default RegistryConfig or more than two RegistryConfigs have the same id ,这样会导致以下问题:
@service只会注册到一个注册中心,除非使用@DubboComponenctScan就可以解决。
而且在使用dubbo.scan-base-packages时,下面的配置,id必须跟dubbo.registries.后面的值一样,否则@reference(registry="registryBCC")就会出问题,

dubbo.registries.registryB.id=registryBCC
dubbo.registries.registryB.address=zookeeper://127.0.0.1:2181
dubbo.registries.registryB.group=dubbo

dubbo.registries.registryA.id=registryBDD
dubbo.registries.registryA.address=zookeeper://127.0.0.1:2181
dubbo.registries.registryA.group=dubboA
@mercyblitz mercyblitz self-assigned this Jul 16, 2020
@mercyblitz mercyblitz added this to the 2.7.8 milestone Jul 16, 2020
mercyblitz added a commit to mercyblitz/dubbo-spring-boot-project that referenced this issue Jul 22, 2020
… one default RegistryConfig or more than two RegistryConfigs have the same id
mercyblitz added a commit to mercyblitz/dubbo-spring-boot-project that referenced this issue Jul 27, 2020
… one default RegistryConfig or more than two RegistryConfigs have the same id
mercyblitz added a commit that referenced this issue Aug 3, 2020
* Polish #718 : [Samples] Introducing the samples deployed the external Servlet container

* Polish #718 : [Samples] Introducing the samples deployed the external Servlet container

* Polish #718 : [Samples] Introducing the samples deployed the external Servlet container

* Polish #685 : Dubbo2.7.5: Duplicate ServiceBean found

* To fix the declaration of years

* Polish #733 : Upgrading the dependencies

* Polish #734 : [Samples] Upgrading the latest Service-Introspection features

* Polish #736 : Duplicate RegistryConfig found, there already has one default RegistryConfig or more than two RegistryConfigs have the same id

* Polish #734 : [Samples] Upgrading the latest Service-Introspection features

* Revert "Polish #734 : [Samples] Upgrading the latest Service-Introspection features"

This reverts commit 3e57fbe.

* Polish #736 : Duplicate RegistryConfig found, there already has one default RegistryConfig or more than two RegistryConfigs have the same id

* Polish #728 : When openfeign and dubbo coexist, DubboAutoConfiguration.primaryPropertyResolver configuration causes openfeign call to fail

* Polish #728 : Refactor

* Bugfix test-cases

* Bugfix build errors

* Bugfix test-cases

* Bugfix test-cases
mercyblitz added a commit that referenced this issue Aug 3, 2020
* Polish #718 : [Samples] Introducing the samples deployed the external Servlet container

* Polish #718 : [Samples] Introducing the samples deployed the external Servlet container

* Polish #718 : [Samples] Introducing the samples deployed the external Servlet container

* Polish #685 : Dubbo2.7.5: Duplicate ServiceBean found

* To fix the declaration of years

* Polish #733 : Upgrading the dependencies

* Polish #734 : [Samples] Upgrading the latest Service-Introspection features

* Polish #736 : Duplicate RegistryConfig found, there already has one default RegistryConfig or more than two RegistryConfigs have the same id

* Polish #734 : [Samples] Upgrading the latest Service-Introspection features

* Revert "Polish #734 : [Samples] Upgrading the latest Service-Introspection features"

This reverts commit 3e57fbe.

* Polish #736 : Duplicate RegistryConfig found, there already has one default RegistryConfig or more than two RegistryConfigs have the same id

* Polish #728 : When openfeign and dubbo coexist, DubboAutoConfiguration.primaryPropertyResolver configuration causes openfeign call to fail

* Polish #728 : Refactor

* Bugfix test-cases

* Bugfix build errors

* Bugfix test-cases

* Bugfix test-cases

* Revert "Revert "Polish #734 : [Samples] Upgrading the latest Service-Introspection features""

This reverts commit 1db06dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants