kylixs commented on issue #9126:
URL: https://github.com/apache/dubbo/issues/9126#issuecomment-955633546
> Dubbo 3.0 Filter 中 获取Spring Bean 的问题
这个问题没有详细的描述,具体是什么问题?
1、在Dubbo中获取Spring context
```java
ApplicationContext applicationContext =
SpringExtensionInjector.get(applicationModel).getContext();
applicationContext.getBean(BarService.class);
```
2、在SPI中通过setter方法注入Spring bean
```
public class MyFooSPI implements FooSPI {
private BarService barService;
public void setBarService(BarService barService) {
this.barService=barService;
}
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]