MangoCool

org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean '' of type [] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2022-09-19 20:43:07   作者:anobody   来源:MangoCool

在springboot项目启动时,出现这种信息提示:

org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean '' of type [] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

这个问题很严重,一定要重视!

简单讲就是,springboot启动时,会加载各种级别的class,同时是有固定顺序的,由不同优先级别的类加载器来加载

当在加载框架级别的class时(比如redis,mysql配置),因为你的失误(在redis,mysql配置中注入了普通bean),导致需要通过低级别的BeanPostProcessor加载这个低级别的bean,而这个bean中又注入了还未加载的框架级别的class(比如redisTemplate),最终导致这个问题的出现
以下这两篇文章讲的很好,可供参考:

https://www.cnblogs.com/asfeixue/p/9535851.html

https://cloud.tencent.com/developer/article/1497619


标签: java springboot 类加载 BeanPostProcessor

分享:

上一篇mysql错误:execute /opt/lnmpp/mysql/bin/mysql.server failed with errno 2

下一篇在linux上使用java exec执行多条cmd

关于我

崇尚极简,热爱技术,喜欢唱歌,热衷旅行,爱好电子产品的一介码农。

座右铭

当你的才华还撑不起你的野心的时候,你就应该静下心来学习,永不止步!

人生之旅历途甚长,所争决不在一年半月,万不可因此着急失望,招精神之萎葸。

Copyright 2015- 芒果酷(mangocool.com) All rights reserved. 湘ICP备14019394号

免责声明:本网站部分文章转载其他媒体,意在为公众提供免费服务。如有信息侵犯了您的权益,可与本网站联系,本网站将尽快予以撤除。