springboot dubbo filter之依赖注入null

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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zysgjd.html