问答详情
源自:2-2 Spring注入方式

代码报错,请老师解惑

运行testCons()单元测试报错:Error creating bean with name 'injectionService' defined in class path resource [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?

提问者:HenryT 2015-03-02 14:43

个回答

  • Coda
    2015-03-02 14:55:59
    已采纳

    应该是你的Spring配置信息有问题