Hi Bomb! 2023-05-19 09:16 采纳率: 72.7%
浏览 24
已结题

MyBatis 配置修改升级

img


报错好像变了, 然后 User是红的 不知道为什么

img

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.BOMB.communityTwo.dao.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.context.annotation.Lazy(true)}
麻烦了

  • 写回答

3条回答 默认 最新

  • 心寒丶 优质创作者: 编程框架技术领域 2023-05-19 09:22
    关注

    那就把你User的包补上看看 ,比如什么 comxx.entity.User

    img

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 5月27日
  • 已采纳回答 5月19日
  • 创建了问题 5月19日