@Autowired
private ICallerRepository callerRepository; ... //用dubbo提供的ServiceBean即可获取bean,因为该类已经实现了ApplicationContextAware ApplicationContext context= ServiceBean.getSpringContext(); callerRepository = context.getBean(ICallerRepository.class);
springboot dubbo filter之依赖注入null
猜你喜欢
转载自www.cnblogs.com/lcxdevelop/p/9558716.html
今日推荐
周排行