Skip to content

springboot 泛化调用的时候能不能也用@Reference引用一个远程的服务? #552

@CodingSinger

Description

@CodingSinger

如题。
好像现在没这个实现,但是感觉如下方案可以实现?

@Reference(interfaceName="com.xxx.xxx.DemoService",generic="true")
GenericService genericService;

解析的时候如果指定了是泛化,则设置interfacename为注解中interfaceName的值,如果没指定泛化为true,则走原来的步骤。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions