为了账号安全,请及时绑定邮箱和手机立即绑定

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.hzy.spboo.dao.AreaDaoTest': Unsatisfied dependency expressed through field 'areaDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefi

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


在对Dao层进行单元测试时,报错了,请问应该如何解决?

正在回答

0 回答

举报

0/150
提交
取消

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.hzy.spboo.dao.AreaDaoTest': Unsatisfied dependency expressed through field 'areaDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefi

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信