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

时间:2023-12-27 12:28:13

出现此日志的原因:

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中