接口多实现,未指定注入对象报错说明:
报错信息:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'user': Unsatisfied dependency expressed through field 'pet'; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.jt.demo.Pet' available: expected single matching bean but found 2: cat,dog
正确操作: