Bug怎么了 2019-03-22 17:07 采纳率: 0%
浏览 249

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注入失败

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2022-09-21 07:59
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?