原文:The bean 'xxx' could not be injected as a 'xxx'because it is a JDK dynamic proxy that implements

啟動springboot項目的時候示以下錯誤 解決辦法:在啟動類中加上 EnableTransactionManagement proxyTargetClass true 就可以了 ...

2019-01-28 09:03 0 2965 推薦指數:

查看詳情

Field XXX in XXXX required a bean of type XXXX that could not be found

這個報錯的意思是:沒有找到相應的bean。 出現這個情況我遇到了兩種: 1.spring沒有掃描到相應的bean。 原因是springboot項目啟動,只有@SpringBootApplication 所在的包被被掃描,如果有其他需要掃描的包,需要顯式寫明 ...

Sat Oct 27 18:53:00 CST 2018 0 10210
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM