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的話,好像各種引用都沒改自動就好了。