@Autowired
private ICallerRepository callerRepository;
...
用dubbo提供的ServiceBean即可获取bean,因为该类已经实现了ApplicationContextAware
ApplicationContext context= ServiceBean.getSpringContext();
callerRepository = context.getBean(ICallerRepository.class);

版权声明:本文为fswhq原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/fswhq/p/dubbo_filter_null.html