Skip to content

@Argument @Method support #2045

Closed
Closed

Description

@brucelwl

例如:如果是xml配置可以这样使用,
<dubbo:reference interface="com.xxx.XxxService">
<dubbo:method name="findXxx" timeout="3000" retries="2" />
</dubbo:reference>
但是如果是
@reference
private com.xxx.XxxService xxxService;
如何针对XxxService类中的findXxx 方法配置进行设置

Activity

  1. chutian52 commented on Jul 9, 2018

    @chutian52

    目前情况下好像是不可以的,你可以尝试下在parameters这个参数中设置下看看。

  2. added this to the 2.7.0 milestone on Jul 9, 2018
  3. zhengjieyuan commented on Jul 24, 2018

    @zhengjieyuan

    同问 关注下

  4. dslchd commented on Aug 1, 2018

    @dslchd

    目前好像不能,我之前一直想在provider方的@service注解,配置方法级别的服务provider配置,没有这些选项,只能用xml配置。但是既然用了注解,就肯定不再单独用xml配置了。

  5. modified the milestones: 2.7.0, 2.7.1 on Jan 15, 2019
  6. chickenlj commented on Mar 4, 2019

    @chickenlj
    Contributor

    @cvictory please apply this change #2603 to the master branch.

  7. added a commit that references this issue on Mar 4, 2019
    574ce03
  8. cvictory commented on Mar 4, 2019

    @cvictory
    Contributor

    I still need to do some test .

  9. added 2 commits that reference this issue on Mar 12, 2019
  10. changed the title [-]采用dubbo的@Reference注解如何使用方法级别配置[/-] [+]@Argument @Method support[/+] on Mar 14, 2019
  11. added a commit that references this issue on Mar 26, 2019
    897b80d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions