is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-...

2022-09-06 12:36:45

出现此日志的原因:

https://blog.csdn.net/m0_37962779/article/details/78605478

上面的博客中可能解决了他的问题,可我的项目是spring boot+dubbo+shiro,这个问题导致shiro自定义的Realm通过@Reference引用dubbo的服务时得到空指针,可能是由于ShiroFilterFactoryBean继承自FactoryBean也导致了提前初始化,而dubbo的BeanPostProcessor此时还未注册导致

目前的解决方案是创建dubbo的ReferenceBean对象,再Autowired到realm中

转载于:https://www.cnblogs.com/hihtml5/p/9505631.html

  • 作者:weixin_30335575
  • 原文链接:https://blog.csdn.net/weixin_30335575/article/details/99204759
    更新时间:2022-09-06 12:36:45