码上敲享录 > mybatis的常见问题 > required a bean of type 'xxx.mapper.xxxMapper' that could not be found.

required a bean of type 'xxx.mapper.xxxMapper' that could not be found.

上一章章节目录下一章 2021-12-24已有909人阅读 评论(0)

required a bean of type 'xxx.mapper.xxxMapper' that could not be found.


解决方法:

检查springboot的Application类上面有没有以下配置,其中com.igswf.mapper就是你放置mapper接口的位置。

@MapperScan(basePackages = {"com.igswf.mapper"})


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交