问答详情
源自:-

老师 我这个是在测试的时候出现的 能帮忙解答一下嘛 感激不尽

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.example.demo.dao.AreaDaoTest': Unsatisfied dependency expressed through field 'areaDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.example.demo.dao.AreaDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}


提问者:qq_可乐_83 2019-03-04 14:57

个回答

  • 翔仔
    2019-03-05 00:20:12

    同学好,需要检查一下你的dao层配置或者你的mapper里面是否没指定成是AreaDao的实现类,以及是否加入了@Autowired等注解