Skip to content

Dubbo Spring Boot中@Reference和@Service命名问题 #447

@linux-china

Description

@linux-china

看readme中的demo

@Service(version = "1.0.0")
public class DefaultDemoService implements DemoService {

这个@service 和Spring中的@repository@service太容易混淆啦。 个人是建议调整为 @DubboService 和 @DubboReference

org.apache.dubbo.config.annotation.Service
org.apache.dubbo.config.annotation.Reference

Spring Boot和其他的RPC框架整合的Demo中,如grpc为 @GRpcService, RSocket RPC为 @RSocketService等

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