is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) spring boot shiro 啟動異常,卡住了。


spring boot shiro 啟動異常,卡住了。

大概的意思就是  

ShiroFilterFactoryBean  會依賴注入  securityManager   然后 securityManager 會注入自定義 Realm 
然后自定義Realm類里面會注入業務的service類,而那些service類包含事務,都是動態代理類。因此無法注入。

解決辦法:去掉自定義Reaml里面對業務service類的依賴注入,想辦法采用另外的辦法把那些service的bean獲取到。
比如:用 SpringUtils.getBean()


免責聲明!

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



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