org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘com.hhmedic.family.admin.web.test.CrudTestServiceImplTest’: Unsatisfied dependency expressed through field ‘tempCode’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.hhmedic.family.order.test.TempCode’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
出现这个异常就是说明bean没有注入成功
(bean案例中出现原因,未将表对象注入为bean)