Skip to content

Dubbo和Open-feign同时使用,会导致Dubbo发布服务失败 #9982

@zkyanGitHub

Description

@zkyanGitHub

版本:Dubbo 3.0.3
@FeignClient 注解的服务在实例化的时候会创建一个IOC容器,并刷新该容器,然后发布ContextRefreshedEvent事件,会触发DubboDeployApplicationListener的onApplicationEvent事件,此时@DubboService实例还没有创建,会导致发布dubbo服务失败。
@DubboService实例创建完成后,Springboot容器重新发布onApplicationEvent事件,此时DefaultModuleDeployer中的state状态已经变为STARTED,不会再发布Dubbo服务。

dubbo-bug
()

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugBugs to being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions