当前位置:网站首页>Could not autowire. No beans of ‘userMapper‘ type found.
Could not autowire. No beans of ‘userMapper‘ type found.
2022-07-27 05:11:00 【Shura_】
There are no mistakes here , however IDEA Report red

package com.example.demo.mapper;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@SpringBootTest
@RunWith(SpringRunner.class) // Start this unit test class
public class UserMapperTest {
@Autowired
UserMapper userMapper;
public void insert() {
}
}
Click on File>Settings>Inspections>Spring>Spring Core>Core>Autowiring for Bean Class>Severity:No highlighting,only fix
Finally, click ok

solve
边栏推荐
- Two dimensional array summation exercise
- Final Cut Pro Chinese tutorial (1) basic understanding of Final Cut Pro
- 使用Druid连接池创建DataSource(数据源)
- UUID and indexing rules
- 精选用户故事|洞态在聚水潭的误报率几乎为0,如何做到?
- Another skill is to earn 30000 yuan a month+
- Acticiti中startProcessInstanceByKey方法在variable表中的如何存储
- 接口和抽象类/方法学习 demo
- 事件总结-常用总结
- Advantages of smart exhibition hall design and applicable industry analysis
猜你喜欢

Review of various historical versions of Photoshop and system requirements

Introduction to MySQL optimization
![[acwing] solution to the 61st weekly match](/img/31/765f4ce9f779e8093668e7606e0198.png)
[acwing] solution to the 61st weekly match

JVM上篇:内存与垃圾回收篇十四--垃圾回收器
![[search] connectivity model of DFS + search order](/img/67/40444e53621371b1c8b47f22ebc956.png)
[search] connectivity model of DFS + search order

strlen和sizeof的区别

How to copy Photoshop layers to other documents

Li Kou achieved the second largest result

How to test the payment process?

UUID and indexing rules
随机推荐
Hiding skills of Photoshop clipping tool
【Acwing】第61场周赛 题解
Svn usage details
Error: cannot read properties of undefined (reading 'then')
Sunyanfang, co-founder of WeiMiao: take compliance as the first essence and become the "regular army" of financial and business education
Differences among left join, inner join and right join
Detailed description of polymorphism
TypeScript 详解
Could not autowire.No beans of ‘userMapper‘ type found.
Invert a Binary Tree
写代码涉及到的斜杠/和反斜杠\
Dialog introduction
Advantages of smart exhibition hall design and applicable industry analysis
听过最自律的一句话: 那些我难以言表 不作声响
精选用户故事|洞态在聚水潭的误报率几乎为0,如何做到?
kali系统arp介绍(断网嗅探密码抓包)
[search] two way search + A*
Acticiti中startProcessInstanceByKey方法在variable表中的如何存储
UUID and indexing rules
使用mq消息队列来进行下单流程的高并发设计,消息挤压,消息丢失,消息重复的产生场景和解决方案