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

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下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号