conflicts with existing, non-compatible bean definition of same name and class


Annotation-specified bean name 'xxxxxImpl' for bean class [cn.abc.dao.service.xxxxxImpl] conflicts with existing, non-compatible bean definition of same name and class [cn.abc.dao.service.dev.xxxxxIImpl]

編譯沒問題,運行就報錯了。

一查原來發現在dao路徑下,有兩個一樣的實現名xxxxxIImpl

一個在dao下

一個在dao.dev下

解析的時候就錯誤了。刪掉一個,把功能合並到一個上去。解決。

用idea的話,好像各種引用都沒改自動就好了。

 


免責聲明!

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



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