You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "mercyblitz (GitHub)" <gi...@apache.org> on 2019/10/09 06:42:01 UTC
[GitHub] [dubbo] mercyblitz commented on issue #3990: dubbo和openfeign一起用报错
This error was caused by Spring Cloud Feign design, every `@FeignClient` will generate a Feign proxy with a new child Spring `ApplicationContext` that may be refreshed before its' parent `ApplicationContext`. If any Dubbo service bean annotated `@Service` was scanned by this child context, this Dubbo bean also will be initialized at the same time, thus there are two ways to resolve this issue :
1. Avoid Dubbo `@Service` Bean to register into the child context
2. Via the `contextId` attribute of `@FeignClient` to specify the Spring Boot server `ApplicationContext`
[ Full content available at: https://github.com/apache/dubbo/issues/3990 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org