root cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userservice': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.jikexueyuancrm.dao.UserDao com.jikexueyuancrm.service.impl.UserServiceImpl.userdao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.jikexueyuancrm.dao.UserDao] 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)}
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
答案:2 悬赏:70 手机版
解决时间 2021-02-28 08:45
- 提问者网友:溺爱和你
- 2021-02-27 10:56
最佳答案
- 五星知识达人网友:骨子里都是戏
- 2021-02-27 11:02
应该是某个配置项 依赖于SessionFactory ,但是容器启动又没有找到
建议贴上你的spring 的配置文件....
你可以试试调换一下你申明依赖SessionFactory 的位置 看看...
建议贴上你的spring 的配置文件....
你可以试试调换一下你申明依赖SessionFactory 的位置 看看...
全部回答
- 1楼网友:廢物販賣機
- 2021-02-27 12:00
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯