開發中遇到的問題---【 is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-pr oxying】


場景再現:開發環境沒問題,測試環境也沒問題,但是到了生產環境就不行了,報下面的錯誤

 

2020-03-09 10:59:39,402 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container sup port, please add the log4j-web JAR to your web archive or server lib directory. [2020-03-09 10:59:40.099] INFO  [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker postProcessAfterInitialization 33 0 - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPrope rtiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$884e3542] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-pr oxying)

解決方案:這種情況是加載配置文件時就出問題了,我花費了幾個小時,最后發現yml文件中的key的值不能是*開頭的,前面自己加一個字母或數字就行了一下就好了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM