feat: register DubboService with optional version parameter#88
Merged
SkyeBeFreeman merged 7 commits intopolarismesh:dubbo-3.2.xfrom Nov 14, 2025
Merged
Conversation
SkyeBeFreeman
requested changes
Nov 14, 2025
...t-polaris/src/main/java/com/tencent/polaris/dubbo/metadata/report/PolarisMetadataReport.java
Show resolved
Hide resolved
SkyeBeFreeman
requested changes
Nov 14, 2025
| private GreetingService greetingService; | ||
|
|
||
| @DubboReference(version = "1.0.0", providedBy = "dubbo-quickstart-provider") | ||
| @DubboReference(version = "1.0.0") |
Member
Author
There was a problem hiding this comment.
providedBy字段是多余的。providedBy = "dubbo-quickstart-provider"指定了使用名为dubbo-quickstart-provider的dubbo应用作为provider。启动demo的provider和consumer时,不用providedBy字段也能调用到dubbo-quickstart-provider中的服务。
Member
There was a problem hiding this comment.
providedBy可以指定从某个被调服务获取服务信息数据,这个字段的作用可以再研究一下,填与不填的区别。
Member
Author
There was a problem hiding this comment.
providedBy可以指定从某个被调服务获取服务信息数据,这个字段的作用可以再研究一下,填与不填的区别。
不填写的时候,会通过mapping元数据找到提供该接口服务的全部应用,然后从北极星拉取这些应用的实例列表完成服务发现。
...t-polaris/src/main/java/com/tencent/polaris/dubbo/metadata/report/PolarisMetadataReport.java
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.