使用Mybatis-Plus时,注入mapper提示Could not autowire. No beans of 'xxxMapper' type found.的解决方案
如图
Tips
此报红不影响项目的正常运行
- 1
解决方案
- 降低IDEA报错的等级
虽然依然提示Could not autowire,但是不报红
2.在Mapper接口上添加 @Component(value = “xxxMapper”)注解
此时就不再提示Could not autowire. No beans of ‘xxxMapper’ type found。
看到最后的帮忙
点个赞???????? 谢谢,这个对我真的很重要!