constructor注入错误org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean

constructor注入错误org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating beanconstructor注入错误org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating beanconstructor注入错误org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean
错误日志:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘classb3’ defined in class path resource [springDI.xml]: Unsatisfied dependency expressed through constructor parameter 3: Ambiguous argument values for parameter of type [springIOC_DI.ioc.InterfaceA] - did you specify the correct bean references as arguments?

错误原因:
有参构造里面参数多了一个ia,容器配置index中却没有注入导致的

总结:好记性不如烂笔头,错误特此记录

上一篇:org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name '


下一篇:Blocking Cross Origin API request for /api/contents Creating Notebook Failed An error occurred whi