【SpringBoot】问题解决

1.

2.

3.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.wdy.ApplicationTests': Unsatisfied dependency expressed through field 'dog'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.wdy.pojo.Dog' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=)}

解决:删除下方@Qualifier

【SpringBoot】问题解决_第1张图片

 

你可能感兴趣的:(SpringBoot,spring,boot,java,spring)