IDEA中在springboot项目中整合Mybatis时@Autowired时,提示Could not autowire解决方案

一、报错:

@Autowired时,提示Could not autowire

二、原因:(这里是非错误级别,即项目可以运行,但是给出无法注入提示)

autowired检测级别的问题

三、解决方案:


  1. 按照顺序依次进行,最后点击apply--> OK 即可。
相关推荐
JavaGuru_LiuYu1 天前
Spring Boot 整合 SSE(Server-Sent Events)
java·spring boot·后端·sse
彭于晏Yan1 天前
Springboot实现数据脱敏
java·spring boot·后端
luming-021 天前
java报错解决:sun.net.utils不存
java·经验分享·bug·.net·intellij-idea
super_lzb1 天前
springboot打war包时将外部配置文件打入到war包内
java·spring boot·后端·maven
钱多多_qdd1 天前
springboot注解(二)
java·spring boot·后端
钱多多_qdd1 天前
springboot注解(五)
java·spring boot·后端
秋91 天前
idea中使用AI编程助手Cursor详解
java·intellij-idea·ai编程
不如打代码KK1 天前
Springboot如何解决跨域问题?
java·spring boot·后端
CodeAmaz1 天前
MyBatis 分页插件实现原理(Interceptor 机制 + SQL 改写)
mybatis·分页插件
Java 码农1 天前
gitlab gitrunner springboot 多环境多分支部署 (非容器方式,使用原生linux 环境)
linux·spring boot·gitlab