依赖注入失败, Error creating bean with name 'authUserServiceImpl'

来源:3-6 ——如何使用源代码

慕仔0127457

2017-09-08

Caused by: org.springframework.beans.factory.BeanCreationException: 

Error creating bean with name 'authUserServiceImpl': Injection of autowired dependencies failed; 

nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.online.college.core.auth.dao.AuthUserDao com.online.college.core.auth.service.impl.AuthUserServiceImpl.entityDao; 

nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.online.college.core.auth.dao.AuthUserDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. 

Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}


貌似找不到接口AuthUserDao的实现类。

恳请帮忙,非常感谢!

写回答

1回答

祁聪

2017-09-08

应该是ocPortal maven 依赖的ocService没有打成jar包,参考一下群里的eclipse 或者 intellj 导入项目的 word文档,如果还有问题单独qq消息我,可以帮你远程解决

0
4
祁聪
回复
慕仔0127457
你的代码是哪个版本?我以为你的是全量代码呢
2017-09-10
共4条回复

Java SSM快速开发仿慕课网在线教育平台

学习整合微信公众平台开发、新浪SAE云平台、七牛云、分布式部署等等

1074 学习 · 449 问题

查看课程