idea Could not autowire. No beans of ‘xxxMapper‘ type found

@Autowired 时候报错,

在IDEA的spring工程里,经常会遇到 Could not autowire. No beans of 'xxxx' type found 的错误提示。

但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。

但红色的错误提示在有些有强迫症的程序员眼里,多多少少有些不太舒服。

这样干就行了

相关推荐
高斯林.神犇25 分钟前
idea快捷键
java·ide·intellij-idea
青春易逝丶44 分钟前
术语缩写
java
ideal-cs1 小时前
总结:Nginx配置文件案例说明
java·运维·nginx·nginx配置文件
无尽的沉默1 小时前
Thymeleaf 基本语法和表达式
java·开发语言
Coder_Boy_1 小时前
Java后端核心技术体系全解析(个人总结)
java·开发语言·spring boot·分布式·spring cloud·中间件
南部余额2 小时前
函数式接口 Lambda 表达式好搭档:Predicate、Function、Consumer、Supplier
java·开发语言·consumer·lambda·function·predicate·supplier
Java后端的Ai之路2 小时前
【JDK】-JDK 17 新特性整理(比较全)
java·开发语言·后端·jdk17
小小小米粒2 小时前
Spring Boot Starter ,不止是 “打包好配置的工具类包”
java·开发语言
用户8307196840822 小时前
告别冗余!Spring Boot Web 入参转换 6 种玩法,@InitBinder 可以退休了
java·spring boot
Desirediscipline2 小时前
#include<limits>#include <string>#include <sstream>#include <iomanip>
java·开发语言·前端·javascript·算法