springboot dubbo filter之依赖注入null

@Autowired
private ICallerRepository callerRepository;
...
//用dubbo提供的ServiceBean即可获取bean,因为该类已经实现了ApplicationContextAware
ApplicationContext context= ServiceBean.getSpringContext();
callerRepository = context.getBean(ICallerRepository.class);
原文地址:https://www.cnblogs.com/fswhq/p/dubbo_filter_null.html