使用Mybatis-Plus时,注入mapper提示Could not autowire. No beans of 'xxxMapper' type found.的解决方案
如图

Tips
此报红不影响项目的正常运行
解决方案
- 降低IDEA报错的等级

虽然依然提示Could not autowire,但是不报红
2.在Mapper接口上添加 @Component(value = “xxxMapper”)注解

此时就不再提示Could not autowire. No beans of ‘xxxMapper’ type found。