單元測(cè)試運(yùn)行下載的代碼出現(xiàn)錯(cuò)誤
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里的注入方式只使用了其中一種,另外一種必須注釋掉。例如,我只啟用了設(shè)置注入方式:
2. 還有幾項(xiàng)要檢查的,你直接看我下面代碼中的注釋吧
2016-12-27
injectionService未定義, TnjectionService的構(gòu)造函數(shù)中缺少參數(shù),參數(shù)類型為com.imooc.ioc.injection.dao.InjectionDAO