單元測試運行下載的代碼出現錯誤
Error creating bean with name 'injectionService' defined in URL [file:/D:/workspace2014/Spring/classes/spring-injection.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.imooc.ioc.injection.dao.InjectionDAO]: Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments?
2017-02-09
檢查spring-injection.xml里的注入方式只使用了其中一種,另外一種必須注釋掉。例如,我只啟用了設置注入方式:
2. 還有幾項要檢查的,你直接看我下面代碼中的注釋吧
2016-12-27
injectionService未定義, TnjectionService的構造函數中缺少參數,參數類型為com.imooc.ioc.injection.dao.InjectionDAO