SpringBoot學習中出現:Failed to instantiate [com.powernode.dao.PaymentDao]: Specified class is an interface的錯誤


為了練習自己的敲代碼的能力,對一個小module,又寫了一次

 

 里面的dao接口,實體類,以及mapper文件都使用了一個相同的name,只是P大小寫問題

 

導致出現了:Failed to instantiate [com.powernode.dao.PaymentDao]: Specified class is an interface,指定的類是一個接口。

 

 解決辦法:將第二個module中的dao接口,實體類和mapper文件改名。

 


免責聲明!

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



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