您的位置: 首页 > 文章 > 问题 21:IDEA 报错 Could not autowire. No beans of 'UserMapper' type found. 问题 21:IDEA 报错 Could not autowire. No beans of 'UserMapper' type found. 分类: 文章 • 2023-01-21 00:22:17 问题描述: 这个也是在使用springboot写CRUD时遇到的问题,在控制器中,使用@Autowire 进行数据的注入时,其变量下面一直提示这个错误。如下图所示: 问题解决: 在File ->Setting -> Editor -> ispections ->找到如下图所示的一行(),将后面的对勾去掉即可。