You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zrlw (via GitHub)" <gi...@apache.org> on 2026/03/17 09:28:16 UTC
Re: [I] [Bug] When Dubbo is used in conjunction with the Spring container, if the Dubbo generic invocation mode is used and the bean is created using the @bean annotation, it can result in the consumer not being registered as a Spring bean. [dubbo]
zrlw commented on issue #16083:
URL: https://github.com/apache/dubbo/issues/16083#issuecomment-4073528262
As for me, Dubbo registers reference beans into the Spring container automatically, the dubbo reference that uses generic mode should be defined as a static variable and be initialized at method ```ApplicationListener#onApplicationEvent``` with parameter ```DubboApplicationStateEvent``` when event#getState returns ```DeployState.STARTED```.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org