在@Test 中测试方法是报错
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.ztes.demo.dao.AreaDaoTest': Unsatisfied dependency expressed through field 'areaDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.ztes.demo.dao.AreaDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
测试报这样的错什么原因????请高手帮忙回答下。谢谢!!!