springboot整合hibernate时报错

图片说明图片说明图片说明图片说明
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userInfoDaoImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.hibernate.SessionFactory' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

老是报找不到我的userInfoDaoImpl类,说是sessionfactory注入失败

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问