We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
项目引用arc-graphql并通过feign调用3方httpapi
项目中增加 @EnableFeignClients 后 graphql无法调用
@EnableFeignClients
能够同时使用 arc-graphql 及 feign
feignClient 在注册过程中 FeignContext 会 调用父类NamedContextFactory的 context.refresh(); 方法,并发送事件 ContextRefreshedEvent
feignClient
FeignContext
NamedContextFactory
context.refresh();
ContextRefreshedEvent
The text was updated successfully, but these errors were encountered:
临时解决方案: 在 GraphQLProvider 中忽略 onApplicationEvent,通过lazy方式在首次请求时执行初始化
GraphQLProvider
onApplicationEvent
@Override public void onApplicationEvent(ContextRefreshedEvent event) { log.info("receive event:{}", event); refresh(); }
Sorry, something went wrong.
wangyuheng
Successfully merging a pull request may close this issue.
背景
项目引用arc-graphql并通过feign调用3方httpapi
现象
项目中增加
@EnableFeignClients
后 graphql无法调用期望
能够同时使用 arc-graphql 及 feign
原因
feignClient
在注册过程中FeignContext
会 调用父类NamedContextFactory
的context.refresh();
方法,并发送事件ContextRefreshedEvent
The text was updated successfully, but these errors were encountered: