原文:解決SpringBoot啟動提示:is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

發現SpringBoot啟動時,打印了這樣的日志: 這是由於某一個service實現了BeanPostProcessor接口,同時這個Service又依賴其他的Service導致的。例子如下: 其中RandomIntProcessor類依賴了RandomIntGenerator類,會導致RandomIntProcessor.postProcessBeforeInitialization方法無法接收 ...

2021-10-13 17:58 1 22835 推薦指數:

查看詳情

BeanPostProcessors (for example: not eligible for auto-proxying),報錯解決

最近遇到個問題,springmvc項目debug啟動失敗 debug啟動會卡住不動,run模式啟動正常 debug啟動輸出到下面這行之后,就不會繼續輸出了 解決辦法: debug模式運行項目,找到斷點,全部刪除 然后就能啟動了 問題出現的原因如下: ...

Mon Jan 14 18:46:00 CST 2019 0 14089
開發中遇到的問題---【 is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-pr oxying】

場景再現:開發環境沒問題,測試環境也沒問題,但是到了生產環境就不行了,報下面的錯誤 解決方案:這種情況是加載配置文件時就出問題了,我花費了幾個小時,最后發現yml文件中的key的值不能是*開頭的,前面自己加一個字母或數字就行了一下就好了。 ...

Tue Mar 10 06:39:00 CST 2020 0 4949
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM